< prev index next >
src/hotspot/share/runtime/thread.cpp
Print this page
*** 1992,2002 ****
if (JvmtiEnv::environments_might_exist()) {
JvmtiExport::cleanup_thread(this);
}
! BarrierSet::barrier_set()->on_thread_destroy(this);
log_info(os, thread)("JavaThread %s (tid: " UINTX_FORMAT ").",
exit_type == JavaThread::normal_exit ? "exiting" : "detaching",
os::current_thread_id());
--- 1992,2002 ----
if (JvmtiEnv::environments_might_exist()) {
JvmtiExport::cleanup_thread(this);
}
! BarrierSet::barrier_set()->on_thread_detach(this);
log_info(os, thread)("JavaThread %s (tid: " UINTX_FORMAT ").",
exit_type == JavaThread::normal_exit ? "exiting" : "detaching",
os::current_thread_id());
*** 2041,2051 ****
if (UseTLAB) {
tlab().make_parsable(true); // retire TLAB, if any
}
! BarrierSet::barrier_set()->on_thread_destroy(this);
Threads::remove(this);
this->smr_delete();
}
--- 2041,2051 ----
if (UseTLAB) {
tlab().make_parsable(true); // retire TLAB, if any
}
! BarrierSet::barrier_set()->on_thread_detach(this);
Threads::remove(this);
this->smr_delete();
}
*** 4300,4310 ****
void Threads::add(JavaThread* p, bool force_daemon) {
// The threads lock must be owned at this point
assert_locked_or_safepoint(Threads_lock);
! BarrierSet::barrier_set()->on_thread_create(p);
p->set_next(_thread_list);
_thread_list = p;
// Once a JavaThread is added to the Threads list, smr_delete() has
--- 4300,4310 ----
void Threads::add(JavaThread* p, bool force_daemon) {
// The threads lock must be owned at this point
assert_locked_or_safepoint(Threads_lock);
! BarrierSet::barrier_set()->on_thread_attach(p);
p->set_next(_thread_list);
_thread_list = p;
// Once a JavaThread is added to the Threads list, smr_delete() has
< prev index next >