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
8271490: [ppc] [s390]: Crash in JavaThread::pd_get_top_frame_for_profiling #5071
Conversation
👋 Welcome back lucy! A progress list of the required criteria for merging this PR into |
The failing Pre-submit tests on Windows x64 are unrelated to this fix. Changes for this fix are in platform-specific files only (os_cpu/linux-ppc, os_cpu/linux-s390, cpu/ppc, cpu/s390). They can't impact Windows x64. |
/label add hotspot-jfr |
@RealLucy The label
|
/label add hotspot-jfr |
@RealLucy |
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. Minor comment nits.
// - ret_frame is constructed with _fp == NULL (for whatever reason) | ||
// - ijava_state_unchecked() calculates it's result as | ||
// istate = fp() - z_ijava_state_size() = NULL - 0x68 DEBUG_ONLY(-8) | ||
// - istate->method dereferences memory at offset 8 from istate |
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.
I think a reference to the JBS issue would suffice as a comment here.
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.
Years ago, I was told that direct references to JBS bugs in the code are strongly discouraged. On the other hand, I regard it as very important to have a detailed description available. So what to do? I need a second review anyway. Maybe she has a third opinion on that.
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.
By the way: Thanks a lot for the review!!!
@RealLucy 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 170 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 |
Thank you, Matthias, for reviewing and approving this fix. Will integrate now. |
/integrate |
Going to push as commit 276b07b.
Your commit was automatically rebased without conflicts. |
/backport jdk17u |
@RealLucy Unknown command |
Please review this pull request. It hardens the code on ppc and s390 against crashes while collecting stack traces for JFR. Stack frame collection in prims/forte.cpp will benefit from this fix as well as it uses the same platform-specific code.
Testing:
SAP-internal functional and stress testing. Verifying a positive effect is hard because the targeted crashes occur only very rarely. No negative side effects of the fix have been observed.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5071/head:pull/5071
$ git checkout pull/5071
Update a local copy of the PR:
$ git checkout pull/5071
$ git pull https://git.openjdk.java.net/jdk pull/5071/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 5071
View PR using the GUI difftool:
$ git pr show -t 5071
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5071.diff