-
Notifications
You must be signed in to change notification settings - Fork 144
8369506: Bytecode rewriting causes Java heap corruption on AArch64 #2355
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back jcking! A progress list of the required criteria for merging this PR into |
@shipilev Correct repo this time. PTAL to help verify barriers/fences for JDK 21. |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
Co-authored-by: Man Cao <[email protected]> Co-authored-by: Chuck Rasbold <[email protected]> Reviewed-by: shade, aph, manc Signed-off-by: Justin King <[email protected]> Backport-of: 18fd04770294e27011bd576b5ea5fe43fa03e5e3
ca82ce3
to
e548ef2
Compare
@jcking Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
Webrevs
|
// get receiver | ||
__ ldr(r0, aaddress(0)); | ||
// access constant pool cache | ||
__ get_cache_and_index_at_bcp(r2, r3, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spent a little while looking at the other uses of get_cache_and_index_at_bcp
and I couldn't find anything obviously wrong, but that might not mean we're OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran this change with our reproducer, and no observable failures. I also made verify_field_offset
be present in the optimized build to be sure. So I think we are good. This is as approximate of a fix we can get I think.
Signed-off-by: Justin King <[email protected]>
Unclean backport to JDK 21. The area in question was changed for JDK 25. Same approximate fix except adds a missing
LoadLoad
barrier toTemplateTable::fast_xaccess
.Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/2355/head:pull/2355
$ git checkout pull/2355
Update a local copy of the PR:
$ git checkout pull/2355
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/2355/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2355
View PR using the GUI difftool:
$ git pr show -t 2355
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/2355.diff
Using Webrev
Link to Webrev Comment