-
Notifications
You must be signed in to change notification settings - Fork 232
8350106: [PPC] Avoid ticks_unknown_not_Java AsyncGetCallTrace() if JavaFrameAnchor::_last_Java_pc not set #3957
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back rrich! A progress list of the required criteria for merging this PR into |
@reinrich 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 47 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 |
This backport pull request has now been updated with issue from the original commit. |
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 correct. Thanks for backporting!
return false; | ||
} | ||
// The last java pc will be found in the abi part of the last java frame. | ||
*fr_addr = frame(sp); |
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'm not a big fan of this diff, but the alternatives (changing frame constructor or determining pc here) are probably not better. So, ok.
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.
+1
|
This pull request contains a backport of commit d5908231 from the openjdk/jdk21u-dev repository.
There are a few trivial adaptations
frame::abi_minframe
was renamedframe::common_abi
in higher releasesIn addition to these there's a non-trivial adaptation. In jdk17, we cannot use the frame constructor that takes a
pc
as 2nd argument because it requires it not to benullptr
. The appropriate frame constructor to use is the one that takessp
as single argument. It reads the pc from the frameslr
slot just asframe::setup()
in jdk21.This pr depends on #3949.
Risk is low because the patch is small and ppc only and the changed method
JavaThread::pd_get_top_frame_for_profiling()
is only used when profiling with jfr or async-profiler.The backport passed our CI testing: JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. JCK, SPECjvm2008, SPECjbb2015, Renaissance Suite, and SAP specific tests.
Testing was done with fastdebug builds on the main platforms and also on Linux/PPC64le.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3957/head:pull/3957
$ git checkout pull/3957
Update a local copy of the PR:
$ git checkout pull/3957
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3957/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3957
View PR using the GUI difftool:
$ git pr show -t 3957
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3957.diff
Using Webrev
Link to Webrev Comment