src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7017732 Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.cpp

Print this page




2959 #endif // PRODUCT
2960 
2961   if (EnableInvokeDynamic && !EnableMethodHandles) {
2962     if (!FLAG_IS_DEFAULT(EnableMethodHandles)) {
2963       warning("forcing EnableMethodHandles true because EnableInvokeDynamic is true");
2964     }
2965     EnableMethodHandles = true;
2966   }
2967   if (EnableMethodHandles && !AnonymousClasses) {
2968     if (!FLAG_IS_DEFAULT(AnonymousClasses)) {
2969       warning("forcing AnonymousClasses true because EnableMethodHandles is true");
2970     }
2971     AnonymousClasses = true;
2972   }
2973   if ((EnableMethodHandles || AnonymousClasses) && ScavengeRootsInCode == 0) {
2974     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
2975       warning("forcing ScavengeRootsInCode non-zero because EnableMethodHandles or AnonymousClasses is true");
2976     }
2977     ScavengeRootsInCode = 1;
2978   }






2979 
2980   if (PrintGCDetails) {
2981     // Turn on -verbose:gc options as well
2982     PrintGC = true;
2983   }
2984 
2985   // Set object alignment values.
2986   set_object_alignment();
2987 
2988 #ifdef SERIALGC
2989   force_serial_gc();
2990 #endif // SERIALGC
2991 #ifdef KERNEL
2992   no_shared_spaces();
2993 #endif // KERNEL
2994 
2995   // Set flags based on ergonomics.
2996   set_ergonomics_flags();
2997 
2998   set_shared_spaces_flags();




2959 #endif // PRODUCT
2960 
2961   if (EnableInvokeDynamic && !EnableMethodHandles) {
2962     if (!FLAG_IS_DEFAULT(EnableMethodHandles)) {
2963       warning("forcing EnableMethodHandles true because EnableInvokeDynamic is true");
2964     }
2965     EnableMethodHandles = true;
2966   }
2967   if (EnableMethodHandles && !AnonymousClasses) {
2968     if (!FLAG_IS_DEFAULT(AnonymousClasses)) {
2969       warning("forcing AnonymousClasses true because EnableMethodHandles is true");
2970     }
2971     AnonymousClasses = true;
2972   }
2973   if ((EnableMethodHandles || AnonymousClasses) && ScavengeRootsInCode == 0) {
2974     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
2975       warning("forcing ScavengeRootsInCode non-zero because EnableMethodHandles or AnonymousClasses is true");
2976     }
2977     ScavengeRootsInCode = 1;
2978   }
2979   if (!JavaObjectsInPerm && ScavengeRootsInCode == 0) {
2980     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
2981       warning("forcing ScavengeRootsInCode non-zero because JavaObjectsInPerm is false");
2982     }
2983     ScavengeRootsInCode = 1;
2984   }
2985 
2986   if (PrintGCDetails) {
2987     // Turn on -verbose:gc options as well
2988     PrintGC = true;
2989   }
2990 
2991   // Set object alignment values.
2992   set_object_alignment();
2993 
2994 #ifdef SERIALGC
2995   force_serial_gc();
2996 #endif // SERIALGC
2997 #ifdef KERNEL
2998   no_shared_spaces();
2999 #endif // KERNEL
3000 
3001   // Set flags based on ergonomics.
3002   set_ergonomics_flags();
3003 
3004   set_shared_spaces_flags();


src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File