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: nob...@puremagic.com
        ReportedBy: wallbra...@gmail.com


--- Comment #0 from Jakob Bornecrantz <wallbra...@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: -------

Reply via email to