RFR: 8305092: Improve Thread.sleep(millis, nanos) for sub-millisecond granularity [v3]

Aleksey Shipilev shade at openjdk.org
Wed Apr 19 09:50:53 UTC 2023


On Wed, 19 Apr 2023 05:58:11 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix gtests
>
> src/hotspot/os/windows/os_windows.cpp line 5253:
> 
>> 5251: 
>> 5252: int PlatformEvent::park_nanos(jlong nanos) {
>> 5253:   assert(0 <= nanos, "nanos are in range");
> 
> `nanos` should never be zero else you call the untimed park.

Changed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13225#discussion_r1171098893


More information about the core-libs-dev mailing list