Skip to content

Commit

Permalink
Merge pull request #60 from knn-k/aarch64instr36_0.20.0
Browse files Browse the repository at this point in the history
(0.20.0) AArch64: Call redoTrampolineReservationIfNecessary()
  • Loading branch information
0xdaryl committed Apr 14, 2020
2 parents 4bf9435 + 2c07a13 commit d4365f3
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 d4365f3

Please sign in to comment.