Skip to content

Commit

Permalink
AArch64: Add missing static keyword to disableArrayStoreCHKOpts variable
Browse files Browse the repository at this point in the history
Add static keyword to `disableArrayStoreCHKOpts` so that feGetEnv() is
called only once.

Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
  • Loading branch information
Akira Saitoh committed May 11, 2021
1 parent ec8e13d commit 4f4f997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/aarch64/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,7 @@ J9::ARM64::TreeEvaluator::ArrayStoreCHKEvaluator(TR::Node *node, TR::CodeGenerat

if (!sourceChild->isNull())
{
bool disableArrayStoreCHKOpts = feGetEnv("TR_AArch64DisableArrayStoreCHKOpts") != NULL;
static const bool disableArrayStoreCHKOpts = feGetEnv("TR_AArch64DisableArrayStoreCHKOpts") != NULL;
TR_J9VM *fej9 = reinterpret_cast<TR_J9VM *>(cg->fe());
TR::LabelSymbol *helperCallLabel = generateLabelSymbol(cg);
// Since ArrayStoreCHK doesn't have the shape of the corresponding helper call we have to create this tree
Expand Down

0 comments on commit 4f4f997

Please sign in to comment.