This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Serious problem with multithreaded I/O on Linux
- To: bryce@albatross.co.nz
- Subject: Re: Serious problem with multithreaded I/O on Linux
- From: Anthony Green <green@cygnus.com>
- Date: Thu, 15 Jul 1999 01:04:01 -0700 (PDT)
- CC: java-discuss@sourceware.cygnus.com
Bryce wrote:
> At a guess, the problem has something to do with the way in which gcj is
> interacting with LinuxThreads. Replacing the calls to read(), etc, in
> java/io/natFileDescriptorPosix.cc with calls to __read(), etc, seems to
> fix the problem - but I'm guessing that this forces the non-thread-aware
> version of the function to be used, which is not what we want to do.
Here's the problem (I think):
bash-2.01$ nm libgcjgc.a | grep "T read"
000005a0 T read
bash-2.01$ nm /usr/lib/libpthread.a | grep "T read"
000001f0 T read
We're bringing libgcjgc in before libpthread, which is a
GC-safe/blocking read.
These two functions have to be combined somehow.
AG
--
Anthony Green Cygnus Solutions
Sunnyvale, California