mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6453355: 4/4 new No_Safepoint_Verifier uses fail during GC
(for Serguei) Clean up use of No_Safepoint_Verifier in JVM TI Reviewed-by: dcubed
This commit is contained in:
parent
f813016add
commit
454bce8993
3 changed files with 47 additions and 36 deletions
|
@ -1317,10 +1317,6 @@ JavaThread::~JavaThread() {
|
|||
ThreadSafepointState::destroy(this);
|
||||
if (_thread_profiler != NULL) delete _thread_profiler;
|
||||
if (_thread_stat != NULL) delete _thread_stat;
|
||||
|
||||
if (jvmti_thread_state() != NULL) {
|
||||
JvmtiExport::cleanup_thread(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1571,6 +1567,10 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
|
|||
tlab().make_parsable(true); // retire TLAB
|
||||
}
|
||||
|
||||
if (jvmti_thread_state() != NULL) {
|
||||
JvmtiExport::cleanup_thread(this);
|
||||
}
|
||||
|
||||
// Remove from list of active threads list, and notify VM thread if we are the last non-daemon thread
|
||||
Threads::remove(this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue