-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8266496: WBIsKlassAliveClosure.do_klass() fails for hidden classes #3882
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 hseigel! A progress list of the required criteria for merging this PR into |
/label remove hotspot |
@hseigel |
@hseigel |
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.
Hi Harold,
Fix seems fine - certainly good enough for whitebox purposes.
Does the test need to generate the classfile? can't you just define a class in the same source file and then read the class file from disk? Whenever I see asm being used I wonder what it is about the class that prevented it being written in Java.
Thanks,
David
@hseigel 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 8 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 ➡️ To integrate this PR with the above commit message to the |
Hi David, Thanks, Harold |
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!
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.
Change looks good to me.
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.
Lois
No need to change test. Thanks, |
Thanks David, Coleen, Misha and Lois for the reviews. /integrate |
@hseigel Since your change was applied there have been 16 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit eb3b96d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Please review this small fix for JDK-8266496. The fix changes WBIsKlassAliveClosure.do_klass() so that when it compares the specified name with the name of a hidden class, it truncates the hidden class's name at the first '+' character before doing the comparison. This should work except in the rare case when the pre-mangled hidden class name contains a '+' character.
The fix was tested with Mach5 tiers 1 and 2 on Linux, Mac OS, and Windows, and tiers 3-5 on Linux x64.
Thanks, Harold
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3882/head:pull/3882
$ git checkout pull/3882
Update a local copy of the PR:
$ git checkout pull/3882
$ git pull https://git.openjdk.java.net/jdk pull/3882/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3882
View PR using the GUI difftool:
$ git pr show -t 3882
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3882.diff