comparison src/share/vm/runtime/vmThread.cpp @ 17845:21dd1c827123

8033696: "assert(thread != NULL) failed: just checking" due to Thread::current() and JNI pthread interaction Reviewed-by: dholmes, dsamersoff Contributed-by: andreas.eriksson@oracle.com
author kevinw
date Wed, 02 Apr 2014 18:40:52 +0200
parents f2110083203d
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17843:81d7a4b28dc5 17845:21dd1c827123
313 // Mutex::lock_without_safepoint_check(). 313 // Mutex::lock_without_safepoint_check().
314 MutexLockerEx ml(_terminate_lock, Mutex::_no_safepoint_check_flag); 314 MutexLockerEx ml(_terminate_lock, Mutex::_no_safepoint_check_flag);
315 _terminated = true; 315 _terminated = true;
316 _terminate_lock->notify(); 316 _terminate_lock->notify();
317 } 317 }
318
319 // Thread destructor usually does this.
320 ThreadLocalStorage::set_thread(NULL);
318 321
319 // Deletion must be done synchronously by the JNI DestroyJavaVM thread 322 // Deletion must be done synchronously by the JNI DestroyJavaVM thread
320 // so that the VMThread deletion completes before the main thread frees 323 // so that the VMThread deletion completes before the main thread frees
321 // up the CodeHeap. 324 // up the CodeHeap.
322 325