Skip to content

Commit

Permalink
Fix offheap guard for OMR
Browse files Browse the repository at this point in the history
Use OMR_GC_SPARSE_HEAP_ALLOCATION instead of
J9VM_GC_ENABLE_SPARSE_HEAP_ALLOCATION in setmemoryEvaluator.

Signed-off-by: midronij <[email protected]>
  • Loading branch information
midronij committed Oct 31, 2024
1 parent 67b1bd7 commit 60e18e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/p/codegen/OMRTreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6071,7 +6071,7 @@ TR::Register *OMR::Power::TreeEvaluator::setmemoryEvaluator(TR::Node *node, TR::
TR::addDependency(conditions, temp2Reg, TR::RealRegister::NoReg, TR_GPR, cg);


#if defined (J9VM_GC_ENABLE_SPARSE_HEAP_ALLOCATION)
#if defined (OMR_GC_SPARSE_HEAP_ALLOCATION)

if (arrayCheckNeeded) // CASE (3)
{
Expand Down Expand Up @@ -6134,7 +6134,7 @@ TR::Register *OMR::Power::TreeEvaluator::setmemoryEvaluator(TR::Node *node, TR::
generateTrg1Src2Instruction(cg, TR::InstOpCode::add, node, dstAddrReg, dstBaseAddrReg, dstOffsetReg);
}

#endif /* J9VM_GC_ENABLE_SPARSE_HEAP_ALLOCATION */
#endif /* OMR_GC_SPARSE_HEAP_ALLOCATION */

// assemble the double word value from byte value
if (cg->comp()->target().cpu.isAtLeast(OMR_PROCESSOR_PPC_P8))
Expand Down

0 comments on commit 60e18e3

Please sign in to comment.