babsingh opened a new pull request #1951: HDFS-15270. Account for *env == NULL 
in hdfsThreadDestructor
URL: https://github.com/apache/hadoop/pull/1951
 
 
   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 <[email protected]>
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to