hotspot/src/share/vm/runtime/arguments.cpp
changeset 24322 c2978d1578e3
parent 24014 b4a5c7518203
child 24338 bff6fc677861
equal deleted inserted replaced
24320:394d55c783dc 24322:c2978d1578e3
  3636       UseCounterDecay = false;
  3636       UseCounterDecay = false;
  3637     }
  3637     }
  3638   }
  3638   }
  3639 #endif // PRODUCT
  3639 #endif // PRODUCT
  3640 
  3640 
  3641   // JSR 292 is not supported before 1.7
  3641   if (ScavengeRootsInCode == 0) {
  3642   if (!JDK_Version::is_gte_jdk17x_version()) {
       
  3643     if (EnableInvokeDynamic) {
       
  3644       if (!FLAG_IS_DEFAULT(EnableInvokeDynamic)) {
       
  3645         warning("JSR 292 is not supported before 1.7.  Disabling support.");
       
  3646       }
       
  3647       EnableInvokeDynamic = false;
       
  3648     }
       
  3649   }
       
  3650 
       
  3651   if (EnableInvokeDynamic && ScavengeRootsInCode == 0) {
       
  3652     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
  3642     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
  3653       warning("forcing ScavengeRootsInCode non-zero because EnableInvokeDynamic is true");
  3643       warning("forcing ScavengeRootsInCode non-zero");
  3654     }
  3644     }
  3655     ScavengeRootsInCode = 1;
  3645     ScavengeRootsInCode = 1;
  3656   }
  3646   }
  3657 
  3647 
  3658   if (PrintGCDetails) {
  3648   if (PrintGCDetails) {