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
8268902: Testing for threadObj != NULL is unnecessary in suspend handshake #4598
Conversation
|
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.
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.
Thumbs up.
@coleenp 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 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
|
Thanks Patricio and Dan. Patricio thank you for the offline discussion and sanity check :) |
Mailing list message from David Holmes on hotspot-runtime-dev: On 26/06/2021 3:57 am, Coleen Phillimore wrote:
This is probably true, but possibly only because we screen out Cheers, |
1 similar comment
Mailing list message from David Holmes on hotspot-runtime-dev: On 26/06/2021 3:57 am, Coleen Phillimore wrote:
This is probably true, but possibly only because we screen out Cheers, |
Mailing list message from David Holmes on hotspot-runtime-dev: On 26/06/2021 8:43 am, David Holmes wrote:
I can't quite join all the dots here. If we look at JDWP allThreads // enumerate threads (including agent threads) which is implicitly ThreadsListEnumerator tle(current_thread, true, true); from: ThreadsListEnumerator(Thread* cur_thread, so in this case we will return those threads that are still attaching Can such a thread then be used by the JDWP Suspend() command ... it I'll follow this up with serviceability folk. Cheers,
|
1 similar comment
Mailing list message from David Holmes on hotspot-runtime-dev: On 26/06/2021 8:43 am, David Holmes wrote:
I can't quite join all the dots here. If we look at JDWP allThreads // enumerate threads (including agent threads) which is implicitly ThreadsListEnumerator tle(current_thread, true, true); from: ThreadsListEnumerator(Thread* cur_thread, so in this case we will return those threads that are still attaching Can such a thread then be used by the JDWP Suspend() command ... it I'll follow this up with serviceability folk. Cheers,
|
Mailing list message from David Holmes on hotspot-runtime-dev: Never mind ... On 28/06/2021 3:21 pm, David Holmes wrote:
I overlooked that before we decide to include (or not) JNI attaching So no issues. Sorry for the noise. David
|
1 similar comment
Mailing list message from David Holmes on hotspot-runtime-dev: Never mind ... On 28/06/2021 3:21 pm, David Holmes wrote:
I overlooked that before we decide to include (or not) JNI attaching So no issues. Sorry for the noise. David
|
Mailing list message from Coleen Phillimore on hotspot-runtime-dev: On 6/28/21 1:31 AM, David Holmes wrote:
I was looking further down the call stack to the jvmti_SuspendThread static jvmtiError JNICALL But interestingly, this ThreadsListEnumerator also filters out threadObj Thanks for digging deeper.? You usually find what I miss!? Thanks
|
1 similar comment
Mailing list message from Coleen Phillimore on hotspot-runtime-dev: On 6/28/21 1:31 AM, David Holmes wrote:
I was looking further down the call stack to the jvmti_SuspendThread static jvmtiError JNICALL But interestingly, this ThreadsListEnumerator also filters out threadObj Thanks for digging deeper.? You usually find what I miss!? Thanks
|
Thanks for the code reviews and investigations. Sorry the gitbot changed the punctuation on my email to question marks. |
Going to push as commit 29bc381.
Your commit was automatically rebased without conflicts. |
In the last pull request on this topic, I was making more general (mis)statements, but this null threadObj check is only for the case where we're suspending a thread which already has a threadObj. This null check is unnecessary.
Tested already with tier1-6 (rerun tier1).
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4598/head:pull/4598
$ git checkout pull/4598
Update a local copy of the PR:
$ git checkout pull/4598
$ git pull https://git.openjdk.java.net/jdk pull/4598/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4598
View PR using the GUI difftool:
$ git pr show -t 4598
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4598.diff