diff --git a/runtime/compiler/codegen/J9CodeGenerator.hpp b/runtime/compiler/codegen/J9CodeGenerator.hpp index 51985f37f0f..07ddc7a8013 100644 --- a/runtime/compiler/codegen/J9CodeGenerator.hpp +++ b/runtime/compiler/codegen/J9CodeGenerator.hpp @@ -345,6 +345,9 @@ class OMR_EXTENSIBLE CodeGenerator : public OMR::CodeGeneratorConnector void setSupportsBigDecimalLongLookasideVersioning() { _flags3.set(SupportsBigDecimalLongLookasideVersioning);} bool constLoadNeedsLiteralFromPool(TR::Node *node) { return false; } + + // Java, likely Z + bool supportsTrapsInTMRegion() { return true; } // -------------------------------------------------------------------------- // GPU diff --git a/runtime/compiler/z/codegen/J9CodeGenerator.hpp b/runtime/compiler/z/codegen/J9CodeGenerator.hpp index bd9db98f6f0..a2d8b5239c5 100644 --- a/runtime/compiler/z/codegen/J9CodeGenerator.hpp +++ b/runtime/compiler/z/codegen/J9CodeGenerator.hpp @@ -114,6 +114,8 @@ class OMR_EXTENSIBLE CodeGenerator : public J9::CodeGenerator bool canGeneratePDBinaryIntrinsic(TR::ILOpCodes opCode, TR::Node * op1PrecNode, TR::Node * op2PrecNode, TR::Node * resultPrecNode); bool constLoadNeedsLiteralFromPool(TR::Node *node); + + bool supportsTrapsInTMRegion(){ return TR::Compiler->target.isZOS();} using J9::CodeGenerator::addAllocatedRegister; void addAllocatedRegister(TR_PseudoRegister * temp);