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

Aleksey Shipilev shade at openjdk.org
Wed Apr 19 18:40:50 UTC 2023


On Wed, 19 Apr 2023 16:32:05 GMT, ExE Boss <duke at openjdk.org> wrote:

>> Aleksey Shipilev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Windows fixes: align(...) is only for power-of-two alignments
>
> src/java.base/share/classes/java/lang/Thread.java line 516:
> 
>> 514:     }
>> 515: 
>> 516:     private static native void sleep0(long nanos) throws InterruptedException;
> 
> Maybe name this `sleepNanos0`?

No, I don't think so. The name of this function is not relevant, as nothing else is calling it.

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

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


More information about the core-libs-dev mailing list