Skip to content

8369506: Bytecode rewriting causes Java heap corruption on AArch64#3152

Closed
TheMangovnik wants to merge 1 commit into
openjdk:masterfrom
TheMangovnik:backport/JDK-8369506
Closed

8369506: Bytecode rewriting causes Java heap corruption on AArch64#3152
TheMangovnik wants to merge 1 commit into
openjdk:masterfrom
TheMangovnik:backport/JDK-8369506

Conversation

@TheMangovnik
Copy link
Copy Markdown
Contributor

@TheMangovnik TheMangovnik commented Feb 12, 2026

Backport of JDK-8369506 - Bytecode rewriting causes Java heap corruption on AArch64.

Only manual change compared to the backport to JDK17 is in file src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp on line 1833. sizeof(markWord) had to be changed to sizeof(markOop), because markWord type is not present in JDK11. markOop should be JDK11 equivalent of markWord.

Tier 1 - PASSES

GTest - PASSES

GHA -PASSES

Only macos-x64 / test (hs/tier1 serviceability) fails, which seems to be common occurrence in other PRs too -> unrelated to this PR.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8369506 needs maintainer approval
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8369506: Bytecode rewriting causes Java heap corruption on AArch64 (Bug - P2 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3152/head:pull/3152
$ git checkout pull/3152

Update a local copy of the PR:
$ git checkout pull/3152
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3152/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3152

View PR using the GUI difftool:
$ git pr show -t 3152

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3152.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Feb 12, 2026

👋 Welcome back TheMangovnik! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 12, 2026

@TheMangovnik This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8369506: Bytecode rewriting causes Java heap corruption on AArch64

Reviewed-by: roland, aph

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 69 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@rwestrel, @theRealAph) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk Bot changed the title backport 9f896829241e78ae0d6afb89b73840997234fb90 8369506: Bytecode rewriting causes Java heap corruption on AArch64 Feb 12, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 12, 2026

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Feb 12, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Feb 12, 2026

Webrevs

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Feb 18, 2026

/reviewers 2

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Feb 18, 2026

@adinn @rwestrel Could you please help review this? Thank you!

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Feb 18, 2026

@jerboaa
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Mar 18, 2026

@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@TheMangovnik
Copy link
Copy Markdown
Contributor Author

/touch

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Mar 18, 2026

@TheMangovnik The pull request is being re-evaluated and the inactivity timeout has been reset.

Copy link
Copy Markdown
Contributor

@rwestrel rwestrel left a comment

Choose a reason for hiding this comment

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

Sorry, I missed this. Looks good to me.

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented Mar 18, 2026

@adinn Does it look OK to you too?

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 15, 2026

@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@TheMangovnik
Copy link
Copy Markdown
Contributor Author

/touch

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 15, 2026

@TheMangovnik The pull request is being re-evaluated and the inactivity timeout has been reset.

@openjdk openjdk Bot removed the rfr Pull request is ready for review label Apr 15, 2026
@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 13, 2026

@TheMangovnik This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@TheMangovnik
Copy link
Copy Markdown
Contributor Author

/template append

@TheMangovnik
Copy link
Copy Markdown
Contributor Author

/touch

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

@TheMangovnik The pull request template has been appended to the pull request body

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

@TheMangovnik The pull request is being re-evaluated and the inactivity timeout has been reset.

@openjdk openjdk Bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 14, 2026
@TheMangovnik
Copy link
Copy Markdown
Contributor Author

/integrate

@openjdk openjdk Bot added the sponsor Pull request is ready to be sponsored label May 14, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 14, 2026

@TheMangovnik
Your change (at version 294d272) is now ready to be sponsored by a Committer.

@jerboaa
Copy link
Copy Markdown
Contributor

jerboaa commented May 15, 2026

/sponsor

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 15, 2026

Going to push as commit 96176ff.
Since your change was applied there have been 69 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label May 15, 2026
@openjdk openjdk Bot closed this May 15, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels May 15, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 15, 2026

@jerboaa @TheMangovnik Pushed as commit 96176ff.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Port of a pull request already in a different code base integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants