Skip to content

Commit

Permalink
Remove deprecated getColdCodeStart()
Browse files Browse the repository at this point in the history
Remove and fold code from deprecated `getColdCodeStart()` function in
`OMR::CodeGenerator`, which only returned 0.

Signed-off-by: Daryl Maier <[email protected]>
  • Loading branch information
0xdaryl committed Oct 20, 2017
1 parent 69ebc8f commit 9baf148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
9 changes: 0 additions & 9 deletions runtime/tr.source/trj9/control/CompilationThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7801,15 +7801,6 @@ TR::CompilationInfoPerThreadBase::compile(
compiler->cg()->getCodeStart()
);

if (compiler->cg()->getColdCodeStart())
{
TR_VerboseLog::write(
POINTER_PRINTF_FORMAT "] & [" POINTER_PRINTF_FORMAT "-",
compiler->cg()->getWarmCodeEnd(),
compiler->cg()->getColdCodeStart()
);
}

TR_VerboseLog::write(
POINTER_PRINTF_FORMAT "] for %s @ %s",
compiler->cg()->getCodeEnd(),
Expand Down
15 changes: 3 additions & 12 deletions runtime/tr.source/trj9/runtime/MetaData.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2016 IBM Corp. and others
* Copyright (c) 2000, 2017 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -1465,17 +1465,8 @@ createMethodMetaData(

data->startPC = (UDATA)comp->cg()->getCodeStart();
data->endPC = (UDATA)comp->cg()->getCodeEnd();
data->startColdPC = (UDATA)comp->cg()->getColdCodeStart();

if (data->startColdPC)
{
data->endWarmPC = (UDATA)comp->cg()->getWarmCodeEnd();
}
else
{
data->endWarmPC = data->endPC;
}

data->startColdPC = (UDATA)0;
data->endWarmPC = data->endPC;
data->codeCacheAlloc = (UDATA)comp->cg()->getBinaryBufferStart();

data->flags = 0;
Expand Down

0 comments on commit 9baf148

Please sign in to comment.