Skip to content

Commit d4365f3

Browse files
authored
Merge pull request #60 from knn-k/aarch64instr36_0.20.0
(0.20.0) AArch64: Call redoTrampolineReservationIfNecessary()
2 parents 4bf9435 + 2c07a13 commit d4365f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/aarch64/codegen/ARM64BinaryEncoding.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ uint8_t *TR::ARM64ImmSymInstruction::generateBinaryEncoding()
9595
else
9696
{
9797
TR::MethodSymbol *method = symRef->getSymbol()->getMethodSymbol();
98+
99+
if (cg()->hasCodeCacheSwitched())
100+
{
101+
cg()->redoTrampolineReservationIfNecessary(this, symRef);
102+
}
103+
98104
if (method && method->isHelper())
99105
{
100106
intptrj_t destination = (intptrj_t)symRef->getMethodAddress();

0 commit comments

Comments
 (0)