-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8369482: JVMTI + Loom: JDK-8368159 introduced safepoint poll in disallowed state #27716
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 aboldtch! A progress list of the required criteria for merging this PR into |
|
@xmas92 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 52 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 |
Webrevs
|
|
I think @sspitsyn IIUC this cleanup of the frame_pop requests should only be needed for the plain continuation case, so shouldn’t we have a |
|
Also, pre-existing and maybe for a different bug, but seems we are missing a call to |
|
/label add serviceability |
|
@dholmes-ora |
Thank you, Patrico!
Good idea. I was also thinking about it at some point.
I can be but could you be more presize about the preempt case? What place do you mean? |
…in disallowed state" This reverts commit e133d9b.
|
@xmas92 |
Done. I was also wondering why the original patch change from just /author @sspitsyn |
|
@xmas92 |
This suggestion came from Patricio. :)
Wrong assumptions. :) For consistency with |
|
/contributor add @pchilano |
|
@xmas92 |
This is one more suggestion from Patricio (I'm testing it now): Testing this update showed no regressions. |
So after freezing for the preempt case we should also call |
We have |
Yes, but we are calling the other overload of |
I see, thanks! Do I understand it right that there is no need to call the I've filed new JVMTI bug: |
|
Pushed the latest patch. The intent of this bug fix was to solve the safepoint (check) issue. Is there anything else we should fix as part of this bug fix? Especially given that there is interest in back-porting JDK-8368159. |
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. Thank you for taking care about this!
Yes, only |
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 to me, thanks.
Agreed. But thank you for fixing the additional issue pointed out by Patricio!
The fix is good as is, thanks!
I'm curios who do you know is interested in back-porting JDK-8368159. I considered to back-port it but now it needs to be back-ported together with this one: JDK-8369482. |
|
Thanks for the reviews. |
|
Going to push as commit 5bf1bab.
Your commit was automatically rebased without conflicts. |
JDK-8368159 added
JvmtiExport::has_frame_pops(JavaThread* thread)which calls
JvmtiExport::get_jvmti_thread_state();which may safepoint.Example stack trace:
I suggest we do double checked on
JvmtiExport::can_post_frame_pop()and move theContinuationWrapper::SafepointOpscope.Progress
Issue
Reviewers
Contributors
<[email protected]>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27716/head:pull/27716$ git checkout pull/27716Update a local copy of the PR:
$ git checkout pull/27716$ git pull https://git.openjdk.org/jdk.git pull/27716/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27716View PR using the GUI difftool:
$ git pr show -t 27716Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27716.diff
Using Webrev
Link to Webrev Comment