GC and Linux/SPARC?

Jeff Sturm jsturm@sigma6.com
Thu Nov 11 10:52:00 GMT 1999


Alexandre Oliva wrote:
>> On Nov 11, 1999, Bryce McKinlay <bryce@albatross.co.nz> wrote:
>> > Has anyone successfully built libgcj with boehm GC on Linux/SPARC?
>> Yep, but only with --disable-threads. Unfortunately, I don't have the
> faintest idea about how to implement GC_test_and_set on sparc :-(

It shouldn't be too hard... I wrote GC_test_and_set for Alpha using
examples from the Alpha Architecture Handbook.
But then we have to do the same for MIPS, ARM and everything else that
can run Linux if we are to be portable to those architectures... yuck. 
It seems like a duplication of effort. LinuxThreads already has code
for test-and-set on all those architectures. So does the Linux kernel.
I don't understand why the GC code couldn't fall back on
pthread_mutex_lock when no test_and_set is available. It is a little
slower but should be safe since pthread_mutex_lock doesn't allocate
memory.
-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list

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