Skip to content

Commit

Permalink
Avoid OOL instruction generation during OOM on X86
Browse files Browse the repository at this point in the history
OutlinedInstructionsGenerator to not generate instructions
when there is a uncaught exception.

Signed-off-by: Victor Ding <dvictor@ca.ibm.com>
  • Loading branch information
Victor Ding committed Oct 18, 2018
1 parent ea548a6 commit c53a0aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler/x/codegen/OutlinedInstructions.cpp
Expand Up @@ -381,6 +381,9 @@ TR_OutlinedInstructionsGenerator::TR_OutlinedInstructionsGenerator(TR::LabelSymb

TR_OutlinedInstructionsGenerator::~TR_OutlinedInstructionsGenerator()
{
generateLabelInstruction(LABEL, _oi->_callNode, generateLabelSymbol(_oi->_cg), _oi->_cg);
_oi->swapInstructionListsWithCompilation();
if (!std::uncaught_exception())
{
generateLabelInstruction(LABEL, _oi->_callNode, generateLabelSymbol(_oi->_cg), _oi->_cg);
_oi->swapInstructionListsWithCompilation();
}
}

0 comments on commit c53a0aa

Please sign in to comment.