A New Early Access Build
Alan Bateman
Alan.Bateman at oracle.com
Thu Jan 2 18:06:16 UTC 2020
On 01/01/2020 12:24, Dávid Karnok wrote:
> Before the API change in Loom, I was using
> FiberScope.background().schedule(executor, work) where executor was
> any Executor without extra constraints as I understood it.
The prototypes to date haven't supported this. You may have got lucky
but you would probably have tripped over a number of asserts if running
with -esa.
So yes, it's a hazard in the current prototype. If you are using a
custom scheduler, the threads (or "carrier threads" as we've been
calling them) must be kernel/heavyweight threads. There are several
issues that will need to be worked through before it will be possible to
multiplex virtual threads over a pool of virtual threads over a pool of
... Hopefully this won't prevent you from testing other things.
-Alan
More information about the loom-dev
mailing list