mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8256508: Improve CompileCommand flag
Reviewed-by: redestad, kvn
This commit is contained in:
parent
7aed9b65d0
commit
cfb175dfdf
22 changed files with 796 additions and 482 deletions
|
@ -1289,7 +1289,7 @@ void MethodData::init() {
|
|||
// Set per-method invoke- and backedge mask.
|
||||
double scale = 1.0;
|
||||
methodHandle mh(Thread::current(), _method);
|
||||
CompilerOracle::has_option_value(mh, "CompileThresholdScaling", scale);
|
||||
CompilerOracle::has_option_value(mh, CompileCommand::CompileThresholdScaling, scale);
|
||||
_invoke_mask = right_n_bits(CompilerConfig::scaled_freq_log(Tier0InvokeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
|
||||
_backedge_mask = right_n_bits(CompilerConfig::scaled_freq_log(Tier0BackedgeNotifyFreqLog, scale)) << InvocationCounter::count_shift;
|
||||
|
||||
|
@ -1306,8 +1306,8 @@ void MethodData::init() {
|
|||
#if INCLUDE_RTM_OPT
|
||||
_rtm_state = NoRTM; // No RTM lock eliding by default
|
||||
if (UseRTMLocking &&
|
||||
!CompilerOracle::has_option_string(mh, "NoRTMLockEliding")) {
|
||||
if (CompilerOracle::has_option_string(mh, "UseRTMLockEliding") || !UseRTMDeopt) {
|
||||
!CompilerOracle::has_option(mh, CompileCommand::NoRTMLockEliding)) {
|
||||
if (CompilerOracle::has_option(mh, CompileCommand::UseRTMLockEliding) || !UseRTMDeopt) {
|
||||
// Generate RTM lock eliding code without abort ratio calculation code.
|
||||
_rtm_state = UseRTM;
|
||||
} else if (UseRTMDeopt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue