-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8301876: Crash in DumpTimeClassInfo::add_verification_constraint #12467
8301876: Crash in DumpTimeClassInfo::add_verification_constraint #12467
Conversation
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
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
@iklam 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 14 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 |
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 and simple, LGTM!
Thanks @calvinccheung and @matias9927 for the review. Passed tiers 1-4. The "Netty" test that I added (in closed repo) executed more than 20 times (on various platforms, 10 iterations each) without crashing. /integrate |
Going to push as commit dc6d52c.
Your commit was automatically rebased without conflicts. |
When dumping the a dynamic CDS archive, we clone and restore the
SystemDictionaryShared::_dumptime_table
(see JDK-8264735.)The bug is that for generated classes such as
jdk/proxy2/$Proxy16
that are excluded from the CDS dump, we incorrectly remove theirDumpTimeClassInfo
from the_dumptime_table
clone. After the dynamic archive has finished dumping, there's a very small window of time where some Java code would be executed and causejdk/proxy2/$Proxy16
to be verified. This will cause the following crash because we can't find aDumpTimeClassInfo
for this class.The fix is simple -- always copy all
DumpTimeClassInfo
when cloning_dumptime_table
.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12467/head:pull/12467
$ git checkout pull/12467
Update a local copy of the PR:
$ git checkout pull/12467
$ git pull https://git.openjdk.org/jdk pull/12467/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12467
View PR using the GUI difftool:
$ git pr show -t 12467
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12467.diff