Skip to content
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

(0.49.0) Fix syncTempTrampolines when startPC returns 0 #217

Merged

Conversation

IBMJimmyk
Copy link
Contributor

@IBMJimmyk IBMJimmyk commented Nov 29, 2024

When syncing temporary trampolines, there is a call to startPC with the callee method to try and get the start PC. If the latest compilation of that method failed, startPC returns zero which is not a real start PC and can not be used as a target for a trampoline. Attempting to do so will cause an error.

This change adds error checking when trying to sync trampolines. When a start PC of zero is returned from the call to startPC, the previous start PC is used instead.

Backport of eclipse-omr/omr#7550

When syncing temporary trampolines, there is a call to startPC with the
callee method to try and get the start PC. If the latest compilation of
that method failed, startPC returns zero which is not a real start PC
and can not be used as a target for a trampoline. Attempting to do so
will cause an error.

This change adds error checking when trying to sync trampolines. When a
start PC of zero is returned from the call to startPC, the previous
start PC is used instead.

Signed-off-by: jimmyk <[email protected]>
@pshipton pshipton merged commit 9dbad44 into eclipse-openj9:v0.49.0-release Nov 29, 2024
1 check 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