Skip to content

Commit

Permalink
Remove obsolete TR_EnableNewAllocationProfiling code
Browse files Browse the repository at this point in the history
Signed-off-by: Daryl Maier <maier@ca.ibm.com>
  • Loading branch information
0xdaryl committed May 17, 2024
1 parent ec2ebce commit 4c8b315
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions runtime/compiler/x/codegen/J9TreeEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6078,34 +6078,6 @@ static void genHeapAlloc(
eaxReal,
generateX86MemoryReference(vmThreadReg,heapAlloc_offset, cg), cg);

if (comp->getOption(TR_EnableNewAllocationProfiling))
{
TR::LabelSymbol *doneProfilingLabel = generateLabelSymbol(cg);

uint32_t *globalAllocationDataPointer = fej9->getGlobalAllocationDataPointer();
if (globalAllocationDataPointer)
{
TR::MemoryReference *gmr = generateX86MemoryReference((uintptr_t)globalAllocationDataPointer, cg);

generateMemImmInstruction(TR::InstOpCode::CMP4MemImm4,
node,
generateX86MemoryReference((uint32_t)(uintptr_t)globalAllocationDataPointer, cg),
0x07ffffff,
cg);
generateLabelInstruction(TR::InstOpCode::JAE4, node, doneProfilingLabel, cg);

generateMemInstruction(TR::InstOpCode::INC4Mem, node, gmr, cg);
uint32_t *dataPointer = fej9->getAllocationProfilingDataPointer(node->getByteCodeInfo(), clazz, node->getOwningMethod(), comp);
if (dataPointer)
{
TR::MemoryReference *mr = generateX86MemoryReference((uint32_t)(uintptr_t)dataPointer, cg);
generateMemInstruction(TR::InstOpCode::INC4Mem, node, mr, cg);
}

generateLabelInstruction(TR::InstOpCode::label, node, doneProfilingLabel, cg);
}
}

bool canSkipOverflowCheck = false;

// If the array length is constant, check to see if the size of the array will fit in a single arraylet leaf.
Expand Down

0 comments on commit 4c8b315

Please sign in to comment.