-
Notifications
You must be signed in to change notification settings - Fork 6.3k
8316694: Implement relocation of nmethod within CodeCache #23573
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
Conversation
👋 Welcome back chadrako! A progress list of the required criteria for merging this PR into |
@chadrako This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
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 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@vnkozlov, @fisk, @tkrodriguez, @eastig, @bulasevich) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
test/hotspot/jtreg/compiler/whitebox/ReplaceNMethodVerifyNoRecomp.java
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/compiler/whitebox/ReplaceNMethodVerifyNoRecomp.java
Outdated
Show resolved
Hide resolved
6a7b186
to
4e44bb0
Compare
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.
lgtm
I will look on it this week and do new testing. |
Update looks good. I submitted new testing. |
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.
My testing for v46 passed.
@vnkozlov There was a minor merge conflict due to JDK-8366461 if you could re-review (hopefully for the last time) |
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.
Re-approved.
/integrate |
/sponsor |
Going to push as commit f740cd2.
Your commit was automatically rebased without conflicts. |
@chadrako we hit failures in tier 3 testing. I will file bug. |
Looks like when I tested changes I did not include new tests (forgot |
I problem listing new tests which fail: #27634 |
We also see assertions on PPC64 in the new test
@reinrich: I assume this assertion is no longer valid. |
Yeah, I reckon it needs to be adapted/removed. Would be nice, though, if we could keep it. |
This PR introduces a new function to replace nmethods, addressing JDK-8316694. It enables the creation of new nmethods from existing ones, allowing method relocation in the code heap and supporting JDK-8328186.
When an nmethod is replaced, a deep copy is performed. The corresponding Java method is updated to reference the new nmethod, while the old one is marked as unused. The garbage collector handles final cleanup and deallocation.
This does not modify existing code paths and therefore does not benefit much from existing tests. New tests were created to test the new functionality
Additional Testing:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23573/head:pull/23573
$ git checkout pull/23573
Update a local copy of the PR:
$ git checkout pull/23573
$ git pull https://git.openjdk.org/jdk.git pull/23573/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23573
View PR using the GUI difftool:
$ git pr show -t 23573
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23573.diff
Using Webrev
Link to Webrev Comment