8371502: serviceability/jvmti/vthread/ThreadListStackTracesTest/ThreadListStackTracesTest.java failing#28734
8371502: serviceability/jvmti/vthread/ThreadListStackTracesTest/ThreadListStackTracesTest.java failing#28734sspitsyn wants to merge 3 commits intoopenjdk:masterfrom
Conversation
…dListStackTracesTest.java failing
|
👋 Welcome back sspitsyn! A progress list of the required criteria for merging this PR into |
|
@sspitsyn 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 75 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
|
|
The most relevant test fragments are below: |
.../jtreg/serviceability/jvmti/vthread/ThreadListStackTracesTest/ThreadListStackTracesTest.java
Outdated
Show resolved
Hide resolved
.../jtreg/serviceability/jvmti/vthread/ThreadListStackTracesTest/ThreadListStackTracesTest.java
Show resolved
Hide resolved
lmesnik
left a comment
There was a problem hiding this comment.
Looks good. Thank you for explanation.
|
Leonid, thank you for review and suggestions! |
|
Thank you for review, Alex! |
|
/integrate |
|
Going to push as commit c46bed7.
Your commit was automatically rebased without conflicts. |
|
/backport :jdk26 |
|
@sspitsyn the backport was successfully created on the branch backport-sspitsyn-c46bed72-jdk26 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk26, 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: |
This fixes the test which is unreliable and fails intermittently from time to time.
The test was failing in the method
checkReentrantLock()when comparing the expected state with result fromvt.getState(). The issue is that the call toThreadListStackTracesTest.reentrantLock.lock()in aReentrantLockTestTaskcan reach waiting state on some class loading but not on the ReentrantLock. Please see the first comment for test sources details.The fix is to add a big enough sleep before call to the checkStates().
Testing:
ThreadListStackTracesTesttest runs before and after the fixProgress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28734/head:pull/28734$ git checkout pull/28734Update a local copy of the PR:
$ git checkout pull/28734$ git pull https://git.openjdk.org/jdk.git pull/28734/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28734View PR using the GUI difftool:
$ git pr show -t 28734Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28734.diff
Using Webrev
Link to Webrev Comment