Skip to content

Commit

Permalink
(0.20.0) AArch64: Call redoTrampolineReservationIfNecessary()
Browse files Browse the repository at this point in the history
This commit adds a call to redoTrampolineReservationIfNecessary()
upon hasCodeCacheSwitched() in generateBinaryEncoding() for
ARM64ImmSymInstruction.

Original PR for master: eclipse-omr/omr#5052

Signed-off-by: KONNO Kazuhiro <[email protected]>
  • Loading branch information
knn-k committed Apr 13, 2020
1 parent 4bf9435 commit 2c07a13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/aarch64/codegen/ARM64BinaryEncoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ uint8_t *TR::ARM64ImmSymInstruction::generateBinaryEncoding()
else
{
TR::MethodSymbol *method = symRef->getSymbol()->getMethodSymbol();

if (cg()->hasCodeCacheSwitched())
{
cg()->redoTrampolineReservationIfNecessary(this, symRef);
}

if (method && method->isHelper())
{
intptrj_t destination = (intptrj_t)symRef->getMethodAddress();
Expand Down

0 comments on commit 2c07a13

Please sign in to comment.