-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8291459: JVM crash with GenerateOopMap::error_work(char const*, __va_list_tag*) #9745
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 |
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.
Seems reasonable. One query on the test but nothing important.
Surprised this has not been detected in the past.
Thanks.
* @run driver compiler.linkage.TestGenerateOopMapCrash | ||
*/ | ||
|
||
package compiler.linkage; |
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 a package, and why this package for a runtime test ??
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.
Commit 3 removed the packages. Thanks for pointing this out.
@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 31 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.
This looks good and like a safe fix.
Thanks David and Coleen for the reviews. /integrate |
Going to push as commit 8d88be2.
Your commit was automatically rebased without conflicts. |
The JVM fails when generating oop maps for method getAlphanumericCode(int) in bug_file/com/google/zxing/qrcode/encoder/Encoder.javap because the last bytecode in the method is an unreachable conditional branch at byecode index 11131:
The class file (Encoder.class) containing getAlphanumericCode(int) has a class file version of 49. So it is verified by the old verifier, which allows methods to end in a conditional branch provided that the conditional branch is unreachable during method execution.
This fix changes GenerateOopMap::jump_targets_do() to handle such methods.
The fix was tested by running the user's failing program, the new regression test, Mach5 tiers 1-2 on Linux, Mac OS, and Windows, Mach5 tiers 3-5 on Linu x64, and the JC Lang,VM, and API tests locally on Linux x64.
Please review.
Thanks, Harold
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9745/head:pull/9745
$ git checkout pull/9745
Update a local copy of the PR:
$ git checkout pull/9745
$ git pull https://git.openjdk.org/jdk pull/9745/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 9745
View PR using the GUI difftool:
$ git pr show -t 9745
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9745.diff