Skip to content

Commit

Permalink
AArch64: Unset hasResumableTrapHandler if TR_DisableTrap is set
Browse files Browse the repository at this point in the history
Change initializer of `OMRCodeGenerator` not to set `hasResumableTrapHandler`
if `TR_DisableTrap` is set.
Set `_numberBytesReadInaccessible` and `_numberBytesWriteInaccessible` to 4096
if `TR_DisableTrap` is not set.

Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
  • Loading branch information
Akira1Saitoh committed Dec 2, 2020
1 parent a789a04 commit 14f84ff
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions compiler/aarch64/codegen/OMRCodeGenerator.cpp
Expand Up @@ -94,11 +94,18 @@ OMR::ARM64::CodeGenerator::initialize()

cg->setSupportsSelect();

_numberBytesReadInaccessible = 0;
_numberBytesWriteInaccessible = 0;

if (TR::Compiler->vm.hasResumableTrapHandler(comp))
if (!comp->getOption(TR_DisableTraps) && TR::Compiler->vm.hasResumableTrapHandler(comp))
{
_numberBytesReadInaccessible = 4096;
_numberBytesWriteInaccessible = 4096;
cg->setHasResumableTrapHandler();
}
else
{
_numberBytesReadInaccessible = 0;
_numberBytesWriteInaccessible = 0;
}

if (!comp->getOption(TR_DisableRegisterPressureSimulation))
{
Expand Down

0 comments on commit 14f84ff

Please sign in to comment.