From 8379a248ba26d382ed4cac2a0542dbd136027549 Mon Sep 17 00:00:00 2001 From: Dhruv Chopra Date: Mon, 30 Sep 2019 13:46:29 -0400 Subject: [PATCH] Use getPersistentIdentifier to get RAM method This query is better than calling getMethodAddress as it will return the correct data even in remote compilations. Signed-off-by: Dhruv Chopra --- runtime/compiler/z/codegen/S390J9CallSnippet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/compiler/z/codegen/S390J9CallSnippet.cpp b/runtime/compiler/z/codegen/S390J9CallSnippet.cpp index 88095415d42..a5f8004b214 100644 --- a/runtime/compiler/z/codegen/S390J9CallSnippet.cpp +++ b/runtime/compiler/z/codegen/S390J9CallSnippet.cpp @@ -357,7 +357,7 @@ TR::S390J9CallSnippet::emitSnippetBody() } else { - uintptrj_t ramMethod = (uintptr_t)methodSymbol->getMethodAddress(); + uintptrj_t ramMethod = (uintptrj_t)methodSymRef->getSymbol()->castToResolvedMethodSymbol()->getResolvedMethod()->getPersistentIdentifier(); *(uintptrj_t *) cursor = ramMethod; if (comp->getOption(TR_EnableHCR)) cg()->jitAddPicToPatchOnClassRedefinition((void *)methodSymbol->getMethodAddress(), (void *)cursor);