Bug 6290 – GC breaks if a thread is allocated on Mac OSX
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
phobos
Product
D
Version
D1 (retired)
Platform
Other
OS
Mac OS X
Creation time
2011-07-11T19:07:00Z
Last change time
2012-03-12T02:59:11Z
Assigned to
nobody
Creator
wallbraker
Comments
Comment #0 by wallbraker — 2011-07-11T19:07:06Z
class MyThread : public Thread {
int run() {
new byte[1024*1024];
return 0;
}
}
int main(char[][] args) {
auto t = new MyThread();
t.start();
t.wait();
return 0;
}
The above program is totally broken on Mac due to a bug in the GC. Patch available in pull request here: https://github.com/D-Programming-Language/phobos/pull/141 after pulling that request, please add this example as a unittest or something, this embarrassment have been in there since at least 1.064.
Cheers Jakob.
Comment #1 by bugzilla — 2012-03-12T02:59:11Z
The pull request was pulled. I presume that means this is fixed.