mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8033696: "assert(thread != NULL) failed: just checking" due to Thread::current() and JNI pthread interaction
Reviewed-by: dholmes, dsamersoff
This commit is contained in:
parent
cf2bf09668
commit
fbb7bd8781
3 changed files with 27 additions and 2 deletions
|
@ -305,6 +305,9 @@ void VMThread::run() {
|
|||
_terminate_lock->notify();
|
||||
}
|
||||
|
||||
// Thread destructor usually does this.
|
||||
ThreadLocalStorage::set_thread(NULL);
|
||||
|
||||
// Deletion must be done synchronously by the JNI DestroyJavaVM thread
|
||||
// so that the VMThread deletion completes before the main thread frees
|
||||
// up the CodeHeap.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue