This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Serious problem with multithreaded I/O on Linux



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]