RFR: 8304919: Implementation of Virtual Threads [v2]

Leonid Mesnik lmesnik at openjdk.org
Wed Mar 29 00:18:34 UTC 2023


On Wed, 29 Mar 2023 00:08:21 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/System.java line 2566:
>> 
>>> 2564: 
>>> 2565:             public <V> V executeOnCarrierThread(Callable<V> task) throws Exception {
>>> 2566:                 if (Thread.currentThread() instanceof VirtualThread vthread) {
>> 
>> Any specific reason to don't use Thread.currentThread().isVirtual()?
>
> To use the pattern variable to call `executeOnCarrierThread` on it?

ough, missed the last words in the line, thanks

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13203#discussion_r1151273326


More information about the serviceability-dev mailing list