[vertx-dev] Async-Await in Vertx with Project Loom

Alan Bateman Alan.Bateman at oracle.com
Thu Oct 21 08:12:36 UTC 2021


On 21/10/2021 08:12, August Nagro wrote:
> :
>
> Now my big question is how Virtual Threads fit into the Vertx/Netty
> event-loop story.
I don't know if anyone has tried to run the event loop in a virtual 
thread but there has been a few reports of off-loading to virtual 
threads. This is problematic due to Netty's thread local buffer caches 
where a lot of the time is spent initializing and allocating native 
memory. Project Panama Foreign Memory API is looking very good and maybe 
some future version of Netty could build an allocator and buffer pool 
based on that and at the same time play well with virtual threads.

-Alan


More information about the loom-dev mailing list