GC with threads on Darwin/OS X

Jeff Sturm jsturm@one-point.com
Thu Jan 16 05:28:00 GMT 2003


(digging through some rather old email...)
On 2002年9月12日, 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.
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /