Skip to content

Fix invalid register values in arraycopy_epilogue barrier #216

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
merged 1 commit into from
Apr 20, 2023

Conversation

wenyuzhao
Copy link
Member

For the arraycopy_epilogue barrier, the count or dst register values may get overwritten after the array copy, and arraycopy_epilogue can receive invalid addresses.

This PR adds an arraycopy_prologue barrier, saves the register values in this prologue barrier, and restores them in arraycopy_epilogue.

This should fix generational plan crashes on some DaCapo benchmarks.

@wenyuzhao
Copy link
Member Author

From the CI results, look like all the generational plans, including StickyImmix, passed all the DaCapo runs.

@wenyuzhao wenyuzhao marked this pull request as ready for review April 19, 2023 23:34
@wenyuzhao wenyuzhao requested a review from k-sareen April 19, 2023 23:34
@k-sareen
Copy link
Collaborator

Yeah it's safe to say from CI results that the bug for generational collectors is fixed. I'll check with our performance parameters + will check what OpenJDK GCs do

Copy link
Collaborator

@k-sareen k-sareen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

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