Integrated: JDK-8328303: 3 JDI tests timed out with UT enabled
Alex Menkov
amenkov at openjdk.org
Fri Mar 22 23:33:26 UTC 2024
On Thu, 21 Mar 2024 22:25:23 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> The change fixes 3 nsk JDI tests.
> Root cause in all 3 tests is the same - the tests requests JDI event with SUSPEND_ALL policy, but event handler thread stops handle incoming event and this causes debuggee to hang (suspended by JDI event).
>
> All 3 tests are updated to exit event handler thread after getting VMDeathEvent or VMDisconnectEvent (and resume debuggee after any other events).
> ClassPrepareEvent tests need to wait some time to allow handle all expected events before terminate the debuggee. The logic was implemented by using CountDownLatch.
>
> All tests are passed with "--test-repeat 20"
This pull request has now been integrated.
Changeset: bc739639
Author: Alex Menkov <amenkov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/bc73963974a824d77d54b8b0edbf8f05262b721c
Stats: 97 lines in 3 files changed: 37 ins; 22 del; 38 mod
8328303: 3 JDI tests timed out with UT enabled
Reviewed-by: cjplummer, sspitsyn, dcubed
-------------
PR: https://git.openjdk.org/jdk/pull/18442
More information about the serviceability-dev
mailing list