8185273: Test8004741.java crashes with SIGSEGV in JDK10-hs nightly

Threads::parallel_java_threads_do() needs to call VMThread::claim_oops_do() to avoid causing a parallel GC to miss the VMThread.

Reviewed-by: shade, rkennke, kvn, gthornbr
This commit is contained in:
Daniel D. Daugherty 2017-07-31 12:37:34 -07:00
parent 149e9c6e54
commit 7a713e117a
4 changed files with 20 additions and 2 deletions

View file

@ -1670,7 +1670,7 @@ bool ObjectSynchronizer::deflate_monitor(ObjectMonitor* mid, oop obj,
// process the same monitor lists concurrently.
//
// See also ParallelSPCleanupTask and
// SafepointSynchronizer::do_cleanup_tasks() in safepoint.cpp and
// SafepointSynchronize::do_cleanup_tasks() in safepoint.cpp and
// Threads::parallel_java_threads_do() in thread.cpp.
int ObjectSynchronizer::deflate_monitor_list(ObjectMonitor** listHeadp,
ObjectMonitor** freeHeadp,