[Issue 6290] New: GC breaks if a thread is allocated on Mac OSX
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 11 19:12:16 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6290
Summary: GC breaks if a thread is allocated on Mac OSX
Product: D
Version: D1
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: blocker
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: wallbraker at gmail.com
--- Comment #0 from Jakob Bornecrantz <wallbraker at gmail.com> 2011-07-11 19:07:06 PDT ---
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.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list