You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2023/09/20 17:53:52 UTC

[GitHub] [incubator-pekko] He-Pin opened a new pull request, #665: =act Make use of externalSubmit to yield.

He-Pin opened a new pull request, #665:
URL: https://github.com/apache/incubator-pekko/pull/665

   refs: https://github.com/apache/incubator-pekko/issues/661
   
   The Current VirtualThrad in JDK 21 making use of the `externalSubmit`
   ```java
   if (s == YIELDING) {   // Thread.yield
               setState(RUNNABLE);
   
               // notify JVMTI that unmount has completed, thread is runnable
               notifyJvmtiUnmount(/*hide*/false);
   
               // external submit if there are no tasks in the local task queue
               if (currentThread() instanceof CarrierThread ct && ct.getQueuedTaskCount() == 0) {
                   externalSubmitRunContinuation(ct.getPool());
               } else {
                   submitRunContinuation();
               }
           }
   ```
   
   I think this change will affect the performance.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org


[GitHub] [incubator-pekko] He-Pin closed pull request #665: POC =act Make use of externalSubmit to yield.

Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin closed pull request #665: POC =act Make use of externalSubmit to yield.
URL: https://github.com/apache/incubator-pekko/pull/665


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org