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
8258652: Assert in JvmtiThreadState::cur_stack_depth() can noticeably slow down debugging single stepping #1835
Conversation
|
…e JVMTI stack depth asserts.
@plummercj The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
ff28129
to
e5ed7b2
Compare
This works but I'm concerned if this sets a precedent for adding expensive assertions? Do we already have similar flags? |
@dholmes-ora The one expensive assert is already there. I have since removed the two additional expensive asserts for the incr() and decr() APIs. I don't know of any other similar flag. |
Ping! Still need 2 reviews for this one too. |
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
Thanks,
Serguei
@plummercj This change now passes all automated pre-integration checks. 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 299 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.
|
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.
Thanks,
David
/integrate |
@plummercj Since your change was applied there have been 300 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 4f881ba. |
There is an assert in
JvmtiThreadState::cur_stack_depth()
that tends to slow down single stepping a lot when running the debuggee with a debug jvm. See CR for details. The fix is to allow disabling of this assert using the new EnableJVMTIStackDepthAsserts global, which defaults to true.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/1835/head:pull/1835
$ git checkout pull/1835