[Issue 15768] std.stdio.trustedStdout accesses __gshared data without synchronization.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jul 21 05:59:50 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15768

--- Comment #6 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
(In reply to Jack Stouffer from comment #2)
> In order for stdout, stdin, and stderr to be shared(File)

1. shared(File) stdio will break code that consumes it as unshared
2. always doing interlocked counting for shared(File) is still slow, consider
this optimization: https://dpaste.dzfl.pl/d8dab5b7aa1f

--


More information about the Digitalmars-d-bugs mailing list