-
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
8310340: assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller #22931
Conversation
👋 Welcome back pchilanomate! A progress list of the required criteria for merging this PR into |
@pchilano 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 37 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.
Looks good to me. Thanks for the detailed analysis.
Patricio, please, let me double check something before your push. |
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.
The fix looks good. It is a great and important finding - thanks!
What was bothering me is that the EnterInterpOnlyModeClosure
is used in the JvmtiEventControllerPrivate::enter_interp_only_mode()
but no HandshakeClosure
is used in the JvmtiEventControllerPrivate::leave_interp_only_mode()
. The handshake use for the enter_interp_only_mode()
looks like a paranoid overkill to me. It can be I just forgot the exact reason why it is used there.
I see. Yes, we still need the handshake in |
Thanks for the reviews @dholmes-ora, @alexmenkov and @sspitsyn! |
/integrate |
Going to push as commit ea49537.
Your commit was automatically rebased without conflicts. |
Agreed. |
/backport :jdk24 |
@pchilano the backport was successfully created on the branch backport-pchilano-ea495377-jdk24 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk24, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk:
|
Please review the following fix. In method
JvmtiEventControllerPrivate::recompute_thread_enabled()
, we are missing to callleave_interp_only_mode()
for the case whereshould_be_interp
is computed as false andstate->is_pending_interp_only_mode()
is true. I added the full trace leading to the crash in the bug comments.In JDK-8338383 I removed this assert because the branch condition changed and it became sort of a redundant check. But given that it was able to find this issue I added it back.
I was able to reproduce the crash easily by adding an extra delay before the assert. I verified the crash doesn’t reproduce anymore with this fix. I also run the patch through mach5 tiers 1-7.
Thanks,
Patricio
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22931/head:pull/22931
$ git checkout pull/22931
Update a local copy of the PR:
$ git checkout pull/22931
$ git pull https://git.openjdk.org/jdk.git pull/22931/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22931
View PR using the GUI difftool:
$ git pr show -t 22931
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22931.diff
Using Webrev
Link to Webrev Comment