Integrated: 8328665: serviceability/jvmti/vthread/PopFrameTest failed with a timeout

Serguei Spitsyn sspitsyn at openjdk.org
Mon Apr 1 23:40:03 UTC 2024


On Thu, 21 Mar 2024 07:11:33 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> This PR fixes a synchronization issue in the test:
>   `test/hotspot/jtreg/serviceability/jvmti/vthread/PopFrameTest`
>   
> The method `notifyAtBreakpoint()` can notify the `TestTask` thread when it has not reached an expected breakpoint yet.
> The fix is to add a call to the method `ensureAtBreakpoint()` one more time in the `B2` sub-test. It is needed after the top-most frame was popped with the JVMTI `PopFrame`, and the target thread needs to reach the breakpoint again after its execution was resumed.
> 
> The time is very intermittent. At least, I was not able to reproduce the timeout failure in thousands of mach5 runs with the `-Xcomp` option.
> 
> Testing:
>  - Run the test `test/hotspot/jtreg/serviceability/jvmti/vthread/PopFrameTest` thousands times in mach5

This pull request has now been integrated.

Changeset: 70c8ff1c
Author:    Serguei Spitsyn <sspitsyn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/70c8ff1c9a9adf21a16d8a6b4da1eeec65afe61d
Stats:     17 lines in 1 file changed: 9 ins; 2 del; 6 mod

8328665: serviceability/jvmti/vthread/PopFrameTest failed with a timeout

Reviewed-by: lmesnik, cjplummer

-------------

PR: https://git.openjdk.org/jdk/pull/18419


More information about the serviceability-dev mailing list