diff src/share/vm/runtime/arguments.cpp @ 23225:3c2ea5da6afd jdk8u45-b37

8085965: VM hangs in C2Compiler Summary: CMSClassUnloadingEnabled and ExplicitGCInvokesConcurrentAndUnloadsClasses should be disabled when -Xnoclassgc is specified Reviewed-by: jmasa, kbarrett
author poonam
date Wed, 17 Jun 2015 05:56:43 -0700
parents 41c3c456e326
children ea47136e6ea4
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Mon Dec 01 15:24:56 2014 +0100
+++ b/src/share/vm/runtime/arguments.cpp	Wed Jun 17 05:56:43 2015 -0700
@@ -1372,6 +1372,12 @@
   if (!FLAG_IS_DEFAULT(CMSParPromoteBlocksToClaim) || !FLAG_IS_DEFAULT(OldPLABWeight)) {
     CFLS_LAB::modify_initialization(OldPLABSize, OldPLABWeight);
   }
+
+  if (!ClassUnloading) {
+    FLAG_SET_CMDLINE(bool, CMSClassUnloadingEnabled, false);
+    FLAG_SET_CMDLINE(bool, ExplicitGCInvokesConcurrentAndUnloadsClasses, false);
+  }
+
   if (PrintGCDetails && Verbose) {
     tty->print_cr("MarkStackSize: %uk  MarkStackSizeMax: %uk",
       (unsigned int) (MarkStackSize / K), (uint) (MarkStackSizeMax / K));