OpenJ9 JVM properly terminates the thread before hdfsThreadDestructor is invoked. JNIEnv is a mirror of J9VMThread in OpenJ9. After proper thread termination, accessing JNIEnv in hdfsThreadDestructor (*env)->GetJavaVM, yields a SIGSEGV since *env is NULL after thread cleanup is performed. The main purpose of hdfsThreadDestructor is to invoke DetachCurrentThread, which performs thread cleanup in OpenJ9. Since OpenJ9 performs thread cleanup before hdfsThreadDestructor is invoked, hdfsThreadDestructor should account for *env == NULL and skip DetachCurrentThread. Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com> (cherry picked from commit 1996351b0b7be6866eda73223ab6ef1ec78d30cd) (cherry picked from commit d1e5e393c30ef25212be365651404c1034532338)
For the latest information about Hadoop, please visit our website at: http://hadoop.apache.org/ and our wiki, at: http://wiki.apache.org/hadoop/ This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See <http://www.wassenaar.org/> for more information. The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code. The following provides more details on the included cryptographic software: Hadoop Core uses the SSL libraries from the Jetty project written by mortbay.org.
Description
Languages
Java
92.7%
C++
2.9%
C
1.9%
JavaScript
1.2%
Shell
0.5%
Other
0.5%