A customer send a report related to the possibility of dead lock or hang.
INVESTIOGATION :
- When some error occurs in some portion described in c language under j2se directory.
- The current error handling flow in 1.4.2 and 5.0 is as follows.
(upper line is caller, lower line is callee)
JVM_GetLastError
--> sysGetLastErrorString() (hpi)
---> strerror()
At sterror(). the error message is extracted.
PROBLEM :
The strerror is thread-safe in Solaris system, but not seem in linux.
According to the "man" in linux system(RHEL3), strerror_r() is thread-safe
"The strerror_r() function is similar to strerror(), but is thread safe.
It returns the string in the user-supplied buffer buf of length n."
REQUEST :
to change the JDK source code to use strerror_r() for linux edition
###@###.### 2005-2-01 07:32:37 GMT
INVESTIOGATION :
- When some error occurs in some portion described in c language under j2se directory.
- The current error handling flow in 1.4.2 and 5.0 is as follows.
(upper line is caller, lower line is callee)
JVM_GetLastError
--> sysGetLastErrorString() (hpi)
---> strerror()
At sterror(). the error message is extracted.
PROBLEM :
The strerror is thread-safe in Solaris system, but not seem in linux.
According to the "man" in linux system(RHEL3), strerror_r() is thread-safe
"The strerror_r() function is similar to strerror(), but is thread safe.
It returns the string in the user-supplied buffer buf of length n."
REQUEST :
to change the JDK source code to use strerror_r() for linux edition
###@###.### 2005-2-01 07:32:37 GMT
- relates to
-
JDK-6596471 (launcher) replace strerror with strerror_r
-
- Closed
-