From 951ba30c3e6d801e59288b18e94397e4a2fb699d Mon Sep 17 00:00:00 2001 From: Luke Li Date: Mon, 9 Dec 2024 17:12:36 -0500 Subject: [PATCH] Flag Call to isClassLibraryMethod in isChangeCurrentThread as vettedForAOT The call to isClassLibraryMethod in isChangeCurrentThread should be safe during AOT(https://github.com/eclipse-openj9/openj9/issues/19965), setting the parameter to true prevents the assertion failure in isClassLibraryMethod Signed-off-by: Luke Li --- runtime/compiler/env/VMJ9.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/compiler/env/VMJ9.cpp b/runtime/compiler/env/VMJ9.cpp index 1aed8150c53..d333107f742 100644 --- a/runtime/compiler/env/VMJ9.cpp +++ b/runtime/compiler/env/VMJ9.cpp @@ -4026,7 +4026,7 @@ TR_J9VMBase::isChangesCurrentThread(TR_ResolvedMethod *method) #if JAVA_SPEC_VERSION >= 21 TR_OpaqueMethodBlock* m = method->getPersistentIdentifier(); // @ChangesCurrentThread should be ignored if used outside the class library - if (isClassLibraryMethod(m)) + if (isClassLibraryMethod(m, true)) return jitIsMethodTaggedWithChangesCurrentThread(vmThread(), (J9Method*)m); #endif /* JAVA_SPEC_VERSION >= 21 */