(digging through some rather old email...)
On Thu, 12 Sep 2002, Brian Alliet wrote:
The past few days I've been trying to get GCJ and the boehm-gc working
on Darwin/OS X. I've made a lot of progress. I'm using mach's
thread_suspend()/thread_resume() calls to suspend other threads while
the GC does its work. It seems to be working well, well enough to
almost run the X11 version of XWT (www.xwt.org). There are still some
bugs to iron out and some cleanup that needs to be done, but it looks
promising.
How far did you get with this? Do you have any patches available for
review?
I'm taking a look at darwin threads now. It isn't hard to build the
collector with linux_threads.c, the main difficulty is finding a
replacement for unnamed semaphores.
However, I'm seeing some odd crashes at runtime. Perhaps the library is
calling non-thread-safe functions. I'm not really sure what's wrong.
Here I see some random passes of FileHandleGcTest.exe, but most time it
fails. Invoking gdb shows that it has to do with threads.