RFR: JDK-8328303: 3 JDI tests timed out with UT enabled [v3]

Alex Menkov amenkov at openjdk.org
Fri Mar 22 23:33:25 UTC 2024


On Fri, 22 Mar 2024 21:29:03 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"
>
> Alex Menkov has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - updated comments
>  - eventsReceived -> allEventsReceived

Last update was cosmetic, so I'm going to integrate the fix to reduce noise in CI

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

PR Comment: https://git.openjdk.org/jdk/pull/18442#issuecomment-2016125851


More information about the serviceability-dev mailing list