< prev index next >

src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp

Print this page
rev 13277 : 8184800: Streamline RTM flag validity testing with generic flag testing support

*** 387,391 **** --- 387,405 ---- } return Flag::SUCCESS; } #endif // COMPILER2 + + Flag::Error RTMTotalCountIncrRateConstraintFunc(int value, bool verbose) { + #if INCLUDE_RTM_OPT + if (UseRTMLocking && !is_power_of_2(RTMTotalCountIncrRate)) { + CommandLineError::print(verbose, + "RTMTotalCountIncrRate (" INTX_FORMAT + ") must be a power of 2, resetting it to 64\n", + RTMTotalCountIncrRate); + FLAG_SET_DEFAULT(RTMTotalCountIncrRate, 64); + } + #endif + + return Flag::SUCCESS; + }
< prev index next >