3575 // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled.
3576 set_aggressive_opts_flags();
3577
3578 // Turn off biased locking for locking debug mode flags,
3579 // which are subtlely different from each other but neither works with
3580 // biased locking.
3581 if (UseHeavyMonitors
3582 #ifdef COMPILER1
3583 || !UseFastLocking
3584 #endif // COMPILER1
3585 ) {
3586 if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) {
3587 // flag set to true on command line; warn the user that they
3588 // can't enable biased locking here
3589 warning("Biased Locking is not supported with locking debug flags"
3590 "; ignoring UseBiasedLocking flag." );
3591 }
3592 UseBiasedLocking = false;
3593 }
3594
3595 #ifdef CC_INTERP
3596 // Clear flags not supported by the C++ interpreter
3597 FLAG_SET_DEFAULT(ProfileInterpreter, false);
3598 FLAG_SET_DEFAULT(UseBiasedLocking, false);
3599 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false));
3600 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedKlassPointers, false));
3601 #endif // CC_INTERP
3602
3603 #ifdef COMPILER2
3604 if (!UseBiasedLocking || EmitSync != 0) {
3605 UseOptoBiasInlining = false;
3606 }
3607 if (!EliminateLocks) {
3608 EliminateNestedLocks = false;
3609 }
3610 if (!Inline) {
3611 IncrementalInline = false;
3612 }
3613 #ifndef PRODUCT
3614 if (!IncrementalInline) {
3615 AlwaysIncrementalInline = false;
3616 }
|
3575 // Set flags if Aggressive optimization flags (-XX:+AggressiveOpts) enabled.
3576 set_aggressive_opts_flags();
3577
3578 // Turn off biased locking for locking debug mode flags,
3579 // which are subtlely different from each other but neither works with
3580 // biased locking.
3581 if (UseHeavyMonitors
3582 #ifdef COMPILER1
3583 || !UseFastLocking
3584 #endif // COMPILER1
3585 ) {
3586 if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) {
3587 // flag set to true on command line; warn the user that they
3588 // can't enable biased locking here
3589 warning("Biased Locking is not supported with locking debug flags"
3590 "; ignoring UseBiasedLocking flag." );
3591 }
3592 UseBiasedLocking = false;
3593 }
3594
3595 #ifdef ZERO
3596 // Clear flags not supported on zero.
3597 FLAG_SET_DEFAULT(ProfileInterpreter, false);
3598 FLAG_SET_DEFAULT(UseBiasedLocking, false);
3599 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedOops, false));
3600 LP64_ONLY(FLAG_SET_DEFAULT(UseCompressedKlassPointers, false));
3601 #endif // CC_INTERP
3602
3603 #ifdef COMPILER2
3604 if (!UseBiasedLocking || EmitSync != 0) {
3605 UseOptoBiasInlining = false;
3606 }
3607 if (!EliminateLocks) {
3608 EliminateNestedLocks = false;
3609 }
3610 if (!Inline) {
3611 IncrementalInline = false;
3612 }
3613 #ifndef PRODUCT
3614 if (!IncrementalInline) {
3615 AlwaysIncrementalInline = false;
3616 }
|