Skip to content

(0.49.0) Change J9::VMMethodEnv::startPC error return value #20720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

IBMJimmyk
Copy link
Contributor

@IBMJimmyk IBMJimmyk commented Nov 29, 2024

OMR version of startPC expects either a valid start PC or 0 to be returned from J9::VMMethodEnv::startPC since it isn't aware of the J9 specific non-startPC special values that are currently being returned.

This change checks if the J9_STARTPC_NOT_TRANSLATED bit flag is set on the startPC to be returned. This indicates that it isn't a real startPC and will return 0 instead.

Error checking has also been added to addFreeBlock to handle startPC returning 0.

Backport of #20657

OMR version of startPC expects either a valid start PC or 0 to be
returned from J9::VMMethodEnv::startPC since it isn't aware of the J9
specific non-startPC special values that are currently being returned.

This change checks if the J9_STARTPC_NOT_TRANSLATED bit flag is set on
the startPC to be returned. This indicates that it isn't a real startPC
and will return 0 instead.

Error checking has also been added to addFreeBlock to handle startPC
returning 0.

Signed-off-by: jimmyk <[email protected]>
@pshipton pshipton merged commit e082895 into eclipse-openj9:v0.49.0-release Nov 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants