src/share/vm/runtime/arguments.cpp

Print this page
rev 2893 : 7121756: Improve C1 inlining policy by using profiling at call sites
Summary: profile based recompilation of methods with C1 with more inlining.
Reviewed-by:


3063     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
3064       warning("forcing ScavengeRootsInCode non-zero because EnableInvokeDynamic is true");
3065     }
3066     ScavengeRootsInCode = 1;
3067   }
3068   if (!JavaObjectsInPerm && ScavengeRootsInCode == 0) {
3069     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
3070       warning("forcing ScavengeRootsInCode non-zero because JavaObjectsInPerm is false");
3071     }
3072     ScavengeRootsInCode = 1;
3073   }
3074 
3075   if (PrintGCDetails) {
3076     // Turn on -verbose:gc options as well
3077     PrintGC = true;
3078   }
3079 
3080   // Set object alignment values.
3081   set_object_alignment();
3082 













3083 #ifdef SERIALGC
3084   force_serial_gc();
3085 #endif // SERIALGC
3086 #ifdef KERNEL
3087   no_shared_spaces();
3088 #endif // KERNEL
3089 
3090   // Set flags based on ergonomics.
3091   set_ergonomics_flags();
3092 
3093   set_shared_spaces_flags();
3094 
3095   // Check the GC selections again.
3096   if (!check_gc_consistency()) {
3097     return JNI_EINVAL;
3098   }
3099 
3100   if (TieredCompilation) {
3101     set_tiered_flags();
3102   } else {




3063     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
3064       warning("forcing ScavengeRootsInCode non-zero because EnableInvokeDynamic is true");
3065     }
3066     ScavengeRootsInCode = 1;
3067   }
3068   if (!JavaObjectsInPerm && ScavengeRootsInCode == 0) {
3069     if (!FLAG_IS_DEFAULT(ScavengeRootsInCode)) {
3070       warning("forcing ScavengeRootsInCode non-zero because JavaObjectsInPerm is false");
3071     }
3072     ScavengeRootsInCode = 1;
3073   }
3074 
3075   if (PrintGCDetails) {
3076     // Turn on -verbose:gc options as well
3077     PrintGC = true;
3078   }
3079 
3080   // Set object alignment values.
3081   set_object_alignment();
3082 
3083 #ifdef COMPILER1
3084   if (!UseInlineCaches) {
3085     // keeping track of types is done at inline cache's state changes
3086     C1TypeProfileInlining = false;
3087   }
3088 #ifdef TIERED
3089   C1ProfileInlining = false;
3090 #endif
3091   if (!C1ProfileInlining) {
3092     C1TypeProfileInlining = false;
3093   }
3094 #endif
3095 
3096 #ifdef SERIALGC
3097   force_serial_gc();
3098 #endif // SERIALGC
3099 #ifdef KERNEL
3100   no_shared_spaces();
3101 #endif // KERNEL
3102 
3103   // Set flags based on ergonomics.
3104   set_ergonomics_flags();
3105 
3106   set_shared_spaces_flags();
3107 
3108   // Check the GC selections again.
3109   if (!check_gc_consistency()) {
3110     return JNI_EINVAL;
3111   }
3112 
3113   if (TieredCompilation) {
3114     set_tiered_flags();
3115   } else {