RFR: 8355453: nsk.share.jdi.Debugee.waitingEvent() does not timeout properly [v2]

Serguei Spitsyn sspitsyn at openjdk.org
Tue Apr 29 22:49:48 UTC 2025


On Tue, 29 Apr 2025 01:44:22 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> test/hotspot/jtreg/vmTestbase/nsk/share/jdi/Debugee.java line 463:
>> 
>>> 461:             EventSet eventSet = eventQueue.remove(timeLeft);
>>> 462:             if (eventSet == null) {
>>> 463:                 return null;
>> 
>> This does not match the comment at the line 438:
>> 
>>      * Wait for the requested event and skip other events.
>
> What is implied here is waiting for "timeout" ms, not indefinitely. Nothing has changed in that regard as the method was always intended to return after the timeout expires.

Okay, thanks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24839#discussion_r2067542009


More information about the serviceability-dev mailing list