Skip to content

Commit

Permalink
Flag Call to isClassLibraryMethod in isChangeCurrentThread as vettedF…
Browse files Browse the repository at this point in the history
…orAOT

The call to isClassLibraryMethod in isChangeCurrentThread should be safe during
AOT(eclipse-openj9#19965), setting the parameter
to true prevents the assertion failure in isClassLibraryMethod

Signed-off-by: Luke Li <[email protected]>
  • Loading branch information
luke-li-2003 committed Dec 9, 2024
1 parent a0c3031 commit 951ba30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/compiler/env/VMJ9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 951ba30

Please sign in to comment.