On Wed, 29 Mar 2023 00:08:21 GMT, Pavel Rappo <pra...@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

Reply via email to