Skip to content

Commit

Permalink
Merge pull request #4693 from dchopra001/disableTraps
Browse files Browse the repository at this point in the history
Disable ResumableTraps when TR_DisableTraps option is set
  • Loading branch information
0xdaryl authored Jan 6, 2020
2 parents ce7fdb2 + 5e9133a commit dafabc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/p/codegen/OMRCodeGenerator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
* Copyright (c) 2000, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -279,7 +279,7 @@ OMR::Power::CodeGenerator::CodeGenerator() :
if (self()->comp()->target().isSMP())
self()->setEnforceStoreOrder();

if (TR::Compiler->vm.hasResumableTrapHandler(self()->comp()))
if (!self()->comp()->getOption(TR_DisableTraps) && TR::Compiler->vm.hasResumableTrapHandler(self()->comp()))
self()->setHasResumableTrapHandler();

/*
Expand Down

0 comments on commit dafabc7

Please sign in to comment.