Skip to content

Commit

Permalink
Merge pull request #7394 from rmnattas/off-heap-unsafeMod-rev
Browse files Browse the repository at this point in the history
Move _offHeapCopyMemory delayedTransformation to OpenJ9
  • Loading branch information
vijaysun-omr authored Jun 25, 2024
2 parents 2074489 + 88613d8 commit b5ef5ed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions compiler/optimizer/OMRValuePropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7264,22 +7264,6 @@ void OMR::ValuePropagation::doDelayedTransformations()
}
_scalarizedArrayCopies.deleteAll();

#if defined(J9_PROJECT_SPECIFIC) && defined(OMR_GC_SPARSE_HEAP_ALLOCATION)
// Transform Unsafe.copyMemory in OffHeap
if (TR::Compiler->om.isOffHeapAllocationEnabled())
{
ListIterator<TR_TreeTopNodePair> copyMemoryIt(&_offHeapCopyMemory);
TR_TreeTopNodePair *copyMemoryPair;
for (copyMemoryPair = copyMemoryIt.getFirst();
copyMemoryPair; copyMemoryPair = copyMemoryIt.getNext())
{
if (performTransformation(comp(), "O^O Call arraycopy instead of Unsafe.copyMemory: %p\n", copyMemoryPair->_node))
TR::TransformUtil::transformUnsafeCopyMemorytoArrayCopyForOffHeap(self()->comp(), copyMemoryPair->_treetop, copyMemoryPair->_node);
}
_offHeapCopyMemory.deleteAll();
}
#endif

// NOTE: the array copy spine checks are processed before the reference, realtime, and
// unknown arraycopies because it refactors the CFG at a higher (outer) level
// than the others. To simplify the CFG it should be run first.
Expand Down
1 change: 0 additions & 1 deletion compiler/optimizer/OMRValuePropagation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,6 @@ class ValuePropagation : public TR::Optimization
List<TR_ArrayCopySpineCheck> _arrayCopySpineCheck;
List<TR::TreeTop> _multiLeafCallsToInline;
List<TR_TreeTopNodePair> _scalarizedArrayCopies;
List<TR_TreeTopNodePair> _offHeapCopyMemory;
List<TR::TreeTop> _converterCalls;
List<TR::TreeTop> _objectCloneCalls;
List<TR::TreeTop> _arrayCloneCalls;
Expand Down
1 change: 0 additions & 1 deletion compiler/optimizer/ValuePropagationCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ OMR::ValuePropagation::ValuePropagation(TR::OptimizationManager *manager)
_javaLangClassGetComponentTypeCalls(trMemory()),
_unknownTypeArrayCopyTrees(trMemory()),
_scalarizedArrayCopies(trMemory()),
_offHeapCopyMemory(trMemory()),
_predictedThrows(trMemory()),
_prexClasses(trMemory()),
_prexMethods(trMemory()),
Expand Down

0 comments on commit b5ef5ed

Please sign in to comment.