8085965: VM hangs in C2Compiler
CMSClassUnloadingEnabled and ExplicitGCInvokesConcurrentAndUnloadsClasses should be disabled when -Xnoclassgc is specified Reviewed-by: jmasa, kbarrett
This commit is contained in:
parent
8a1f708096
commit
20bb21349c
@ -208,7 +208,7 @@ void GenMarkSweep::mark_sweep_phase1(int level,
|
|||||||
level,
|
level,
|
||||||
false, // Younger gens are not roots.
|
false, // Younger gens are not roots.
|
||||||
GenCollectedHeap::SO_None,
|
GenCollectedHeap::SO_None,
|
||||||
GenCollectedHeap::StrongRootsOnly,
|
ClassUnloading,
|
||||||
&follow_root_closure,
|
&follow_root_closure,
|
||||||
&follow_root_closure,
|
&follow_root_closure,
|
||||||
&follow_cld_closure);
|
&follow_cld_closure);
|
||||||
|
@ -1384,6 +1384,12 @@ void Arguments::set_cms_and_parnew_gc_flags() {
|
|||||||
if (!FLAG_IS_DEFAULT(OldPLABSize) || !FLAG_IS_DEFAULT(OldPLABWeight)) {
|
if (!FLAG_IS_DEFAULT(OldPLABSize) || !FLAG_IS_DEFAULT(OldPLABWeight)) {
|
||||||
CFLS_LAB::modify_initialization(OldPLABSize, OldPLABWeight);
|
CFLS_LAB::modify_initialization(OldPLABSize, OldPLABWeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!ClassUnloading) {
|
||||||
|
FLAG_SET_CMDLINE(bool, CMSClassUnloadingEnabled, false);
|
||||||
|
FLAG_SET_CMDLINE(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (PrintGCDetails && Verbose) {
|
if (PrintGCDetails && Verbose) {
|
||||||
tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk",
|
tty->print_cr("MarkStackSize: %uk MarkStackSizeMax: %uk",
|
||||||
(unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));
|
(unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user