GC and Linux/SPARC?

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


Tom Tromey wrote:
> 
> Jeff> But then we have to do the same for MIPS, ARM and everything
> Jeff> else that can run Linux if we are to be portable to those
> Jeff> architectures... yuck.  It seems like a duplication of effort.
> Jeff> LinuxThreads already has code for test-and-set on all those
> Jeff> architectures.  So does the Linux kernel.
> 
> Is the LinuxThreads code exposed to the outside world?
> If so it seems like we could get the GC to use it directly.

Hmm... it doesn't seem to work.  The function declaration is:

  extern inline int testandset(int *spinlock)

but I can't link to it, even though it appears in the name list:

  [jsturm@toronto jsturm]$ nm /lib/libpthread-0.8.so | egrep testandset
  00008d78 t testandset

it's declared similarly for other architectures.

-- 
Jeff Sturm
jsturm@sigma6.com


More information about the Java mailing list