Virtual threads in existing FJP logic
Christian Stein
sormuras at gmail.com
Mon Feb 17 15:10:17 UTC 2020
Hi Ron,
On Mon, Feb 17, 2020 at 3:33 PM Ron Pressler <ron.pressler at oracle.com>
wrote:
>
> Hi Christian.
>
> I’m not sure I understand. You want to use virtual threads as
> FJP *workers*? If so, why?
>
>
Yes. That was our first attempt to get virtual threads working
with the existing ecosystem -- based on an obvious lack of
understanding paired with gettting things done "quick and dirty".
> It is never a good idea to pool virtual threads, and FJP is all about
> pooling. Of course, you could always set your FJP as the *scheduler*
> for your virtual threads.
>
>
Understood and already implemented our spike based on
that idea: [0] ... works like a charm, so far. Looking forward
seeing Loom being integrated to OpenJDK's master branch.
Cheers,
Christian
[0]:
https://github.com/junit-team/junit5/compare/loom#diff-37325a23fcbc3b777c6e974e8761f85cR42-R52
More information about the loom-dev
mailing list