3101 set_bytecode_flags(); |
3101 set_bytecode_flags(); |
3102 |
3102 |
3103 // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled. |
3103 // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled. |
3104 set_aggressive_opts_flags(); |
3104 set_aggressive_opts_flags(); |
3105 |
3105 |
|
3106 // Turn off biased locking for locking debug mode flags, |
|
3107 // which are subtlely different from each other but neither works with |
|
3108 // biased locking. |
|
3109 if (!UseFastLocking || UseHeavyMonitors) { |
|
3110 if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) { |
|
3111 // flag set to true on command line; warn the user that they |
|
3112 // can't enable biased locking here |
|
3113 warning("Biased Locking is not supported with locking debug flags" |
|
3114 "; ignoring UseBiasedLocking flag." ); |
|
3115 } |
|
3116 UseBiasedLocking = false; |
|
3117 } |
|
3118 |
3106 #ifdef CC_INTERP |
3119 #ifdef CC_INTERP |
3107 // Clear flags not supported by the C++ interpreter |
3120 // Clear flags not supported by the C++ interpreter |
3108 FLAG_SET_DEFAULT(ProfileInterpreter, false); |
3121 FLAG_SET_DEFAULT(ProfileInterpreter, false); |
3109 FLAG_SET_DEFAULT(UseBiasedLocking, false); |
3122 FLAG_SET_DEFAULT(UseBiasedLocking, false); |
3110 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false)); |
3123 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false)); |