8085965: VM hangs in C2Compiler

CMSClassUnloadingEnabled and ExplicitGCInvokesConcurrentAndUnloadsClasses should be disabled when -Xnoclassgc is specified

Reviewed-by: jmasa, kbarrett
This commit is contained in:
Poonam Bajaj 2015-06-16 14:30:27 -07:00
parent 8a1f708096
commit 20bb21349c
2 changed files with 7 additions and 1 deletions

View file

@ -208,7 +208,7 @@ void GenMarkSweep::mark_sweep_phase1(int level,
level,
false, // Younger gens are not roots.
GenCollectedHeap::SO_None,
GenCollectedHeap::StrongRootsOnly,
ClassUnloading,
&follow_root_closure,
&follow_root_closure,
&follow_cld_closure);