Skip to content

Commit

Permalink
Merge pull request #20817 from ehsankianifar/Z_moveVariableDeclaratio…
Browse files Browse the repository at this point in the history
…nToTopOfTheMethod

Z: Moving variable declaration to the method top
  • Loading branch information
pshipton authored Dec 11, 2024
2 parents e8707b4 + ee1b772 commit 04e7042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/z/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3835,6 +3835,7 @@ J9::Z::CodeGenerator::inlineDirectCall(

static const char * enableTRTRE = feGetEnv("TR_enableTRTRE");
static bool disableCAEIntrinsic = feGetEnv("TR_DisableCAEIntrinsic") != NULL;
static const bool enableOSW = feGetEnv("TR_noPauseOnSpinWait") == NULL;
switch (methodSymbol->getRecognizedMethod())
{
case TR::sun_misc_Unsafe_compareAndSwapInt_jlObjectJII_Z:
Expand Down Expand Up @@ -4082,7 +4083,6 @@ J9::Z::CodeGenerator::inlineDirectCall(
}
break;
case TR::java_lang_Thread_onSpinWait:
static const bool enableOSW = feGetEnv("TR_noPauseOnSpinWait") == NULL;
if (enableOSW)
{
resultReg = TR::TreeEvaluator::inlineOnSpinWait(node, cg);
Expand Down

0 comments on commit 04e7042

Please sign in to comment.