-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8365501: Remove special AdapterHandlerEntry for abstract methods #26764
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
8365501: Remove special AdapterHandlerEntry for abstract methods #26764
Conversation
Signed-off-by: Ashutosh Mehra <[email protected]>
👋 Welcome back asmehra! A progress list of the required criteria for merging this PR into |
@ashu-mehra 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 60 new commits pushed to the
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. ➡️ To integrate this PR with the above commit message to the |
@ashu-mehra The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
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.
Nice. Let me test it.
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 tier1-5 testing passed
@vnkozlov thanks for reviewing and testing it. |
@adinn can you please review it as well. |
Signed-off-by: Ashutosh Mehra <[email protected]>
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.
Good.
New test failure java/lang/Thread/virtual/stress/GetStackTraceALotWhenBlocking.java#id0 on macos-aarch64:
|
I haven't been able to reproduce it locally after running the test 1000 times. |
And I did not see such failure in our testing. |
I filed a bug for the crash https://bugs.openjdk.org/browse/JDK-8366438 |
@adinn, please review these changes. |
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.
Looks good but I would appreciate an explanation as to why we don't need the lock.
void AdapterHandlerLibrary::initialize() { | ||
{ | ||
ResourceMark rm; | ||
MutexLocker mu(AdapterHandlerLibrary_lock); |
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.
Why are we ok to drop this lock here? Was it unnecessary even before this change?
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.
This lock was required because AdapterHandlerLibrary::create_abstract_method_handler
expected the lock to be held. Now that method is deleted, we don't need to acquire the lock.
/integrate |
Going to push as commit 444a8fa.
Your commit was automatically rebased without conflicts. |
@ashu-mehra Pushed as commit 444a8fa. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR removes the need for having AdapterHandlerEntry for abstract methods. The check for abstract method is now done in the accessor functions in Method such as Method::get_i2c_entry().
Motivation for this change is described in the JBS issue.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26764/head:pull/26764
$ git checkout pull/26764
Update a local copy of the PR:
$ git checkout pull/26764
$ git pull https://git.openjdk.org/jdk.git pull/26764/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26764
View PR using the GUI difftool:
$ git pr show -t 26764
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26764.diff
Using Webrev
Link to Webrev Comment