8332857: Test vmTestbase/nsk/jvmti/GetThreadCpuTime/thrcputime002/TestDescription.java failed#23144
8332857: Test vmTestbase/nsk/jvmti/GetThreadCpuTime/thrcputime002/TestDescription.java failed#23144sspitsyn wants to merge 2 commits intoopenjdk:masterfrom
Conversation
…tDescription.java failed
|
👋 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 45 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
|
| /* ============================================================================= */ | ||
|
|
||
| static jlong timeout = 0; | ||
| static jrawMonitorID monitor; |
There was a problem hiding this comment.
Can you clarify which data this monitor is protecting? I think it is just prevTestedThreadTime and prevAgentThreadTime, in which case I think you should refine its usage. For example, is it really needed in any of the callbacks other than callbackThreadStart()?
There was a problem hiding this comment.
My intention is to serialize event callback calls plus protect multi-threaded access/modification of these variables. It is almost always good to sync the events callbacks. I can add a comment with this clarification.
lmesnik
left a comment
There was a problem hiding this comment.
It is a good improvement of test stability. However, I am not sure that it fixed test problem.
Can the test fails because clock on the host were changed? There are some similar test failures happened when host update clock time during test execution.
|
Alex and Leonid, thank you for review! |
Me neither. This is impossible to reproduce, so at least a lack of synchronization has to be fixed and then see how it goes.
Yes, it can. But we can't say for sure. |
|
Thank you for review, Chris! |
|
/integrate |
|
Going to push as commit 6ef860c.
Your commit was automatically rebased without conflicts. |
There should be nothing in the test that interacts with the time-of-day clock on the host. |
The test lacks a synchronization, so it is added by this fix.
Testing:
vmTestbase/nsk/jvmti/GetThreadCpuTime/thrcputime002Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23144/head:pull/23144$ git checkout pull/23144Update a local copy of the PR:
$ git checkout pull/23144$ git pull https://git.openjdk.org/jdk.git pull/23144/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23144View PR using the GUI difftool:
$ git pr show -t 23144Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23144.diff
Using Webrev
Link to Webrev Comment