[Issue 2419] New: Thread.getThis() broken?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 15 05:13:26 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2419
Summary: Thread.getThis() broken?
Product: D
Version: 2.019
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: johnch_atms at hotmail.com
Thread.getThis throws an exception and prints "didn't find it" on the command
line.
It appears that Thread.thread_init isn't getting called as it should during
gc_init. Only when I explicitly call Thread.thread_init in my main procedure,
does Thread.getThis return a valid object.
This sample program should repro the issue:
import std.thread;
void main() {
Thread.getThis();
}
(Compiled with -debug -g -O -inline flags.)
--
More information about the Digitalmars-d-bugs
mailing list