This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Usage of strerror in natFileDescriptor.cc


>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> While reading natFileDescriptor.cc I noticed the use of strerror(). Is
Mark> this funtion thread save? All calls are wrapped in a JvNewStringLatin1()
Mark> call so this might be save, but it seems there might be a small
Mark> opertunity for a race to occur when called from two threads at the same
Mark> time.

We should use strerror_r.
This is now bugzilla 12660.

Tom


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