This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GC with threads on Darwin/OS X
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Brian Alliet <brian at brian-web dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 16 Jan 2003 00:28:32 -0500 (EST)
- Subject: Re: GC with threads on Darwin/OS X
(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.
Jeff