Skip to content

Conversation

@sspitsyn
Copy link
Contributor

@sspitsyn sspitsyn commented Nov 8, 2025

This is fix is to increase the EXPECTED_ACCURACY value in the test:
hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC05/tc05t001.
It is used check that the waiting time between MonitorWait and MonitorWaited event is not big. It seems that in some corner cases this time can be bigger than expected.

Testing:

  • TBD: Verify the test with mach5 test runs

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8349192: jvmti/scenarios/contention/TC05/tc05t001 fails: ERROR: tc05t001.cpp, 281: (waitedThreadCpuTime - waitThreadCpuTime) < (EXPECTED_ACCURACY * 1000000) (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28206/head:pull/28206
$ git checkout pull/28206

Update a local copy of the PR:
$ git checkout pull/28206
$ git pull https://git.openjdk.org/jdk.git pull/28206/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28206

View PR using the GUI difftool:
$ git pr show -t 28206

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28206.diff

Using Webrev

Link to Webrev Comment

…tc05t001.cpp, 281: (waitedThreadCpuTime - waitThreadCpuTime) < (EXPECTED_ACCURACY * 1000000)
@bridgekeeper
Copy link

bridgekeeper bot commented Nov 8, 2025

👋 Welcome back sspitsyn! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 8, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the serviceability serviceability-dev@openjdk.org label Nov 8, 2025
@openjdk
Copy link

openjdk bot commented Nov 8, 2025

@sspitsyn The following label will be automatically applied to this pull request:

  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 8, 2025
@sspitsyn sspitsyn changed the title 8349192: Test jvmti/scenarios/contention/TC05/tc05t001 fails: ERROR: tc05t001.cpp, 281: (waitedThreadCpuTime - waitThreadCpuTime) < (EXPECTED_ACCURACY * 1000000) 8349192: jvmti/scenarios/contention/TC05/tc05t001 fails: ERROR: tc05t001.cpp, 281: (waitedThreadCpuTime - waitThreadCpuTime) < (EXPECTED_ACCURACY * 1000000) Nov 8, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 8, 2025

Webrevs

@@ -40,9 +40,9 @@ static const jlong EXPECTED_TIMEOUT = 1;
static const jlong EXPECTED_TIMEOUT_ACCURACY_NS = 300000;

#if (defined(WIN32) || defined(_WIN32))
static const jlong EXPECTED_ACCURACY = 16; // 16ms is longest clock update interval
static const jlong EXPECTED_ACCURACY = 32; // 16ms is longest clock update interval
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the comment 16ms should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rfr Pull request is ready for review serviceability serviceability-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

2 participants