8241296: Segfault in JNIHandleBlock::oops_do()

Reviewed-by: stefank
This commit is contained in:
Andrew Haley 2020-03-19 14:53:57 +00:00
parent 136a1574ec
commit 34ae46e2bc

View File

@ -888,7 +888,9 @@ bool Thread::claim_par_threads_do(uintx claim_token) {
}
void Thread::oops_do(OopClosure* f, CodeBlobClosure* cf) {
active_handles()->oops_do(f);
if (active_handles() != NULL) {
active_handles()->oops_do(f);
}
// Do oop for ThreadShadow
f->do_oop((oop*)&_pending_exception);
handle_area()->oops_do(f);