8288139: JavaThread touches oop after GC barrier is detached

Reviewed-by: pchilanomate, dholmes, rehn, eosterlund
This commit is contained in:
Daniel D. Daugherty 2022-06-21 16:21:03 +00:00
parent e26d3b3c01
commit a144988600
4 changed files with 16 additions and 13 deletions

View file

@ -108,7 +108,7 @@ void ThreadIdTable::lazy_initialize(const ThreadsList *threads) {
MutexLocker ml(Threads_lock);
if (!thread->is_exiting()) {
// Must be inside the lock to ensure that we don't add a thread to the table
// that has just passed the removal point in ThreadsSMRSupport::remove_thread()
// that has just passed the removal point in Threads::remove().
add_thread(java_tid, thread);
}
}