[External] : Re: Ephemeral threads
Remi Forax
forax at univ-mlv.fr
Tue Jan 13 10:13:19 UTC 2026
While it makes sense to see Java coroutine as Thread, it makes less sense to see generators as Thread.
So if we introduce generators, we will use a different mechanism than virtual threads,
so the expectations are not the same, so most of the spooky issues discuss here do not exist.
Rémi
----- Original Message -----
> From: "Alan Bateman" <alan.bateman at oracle.com>
> To: "Alex Otenko" <oleksandr.otenko at gmail.com>
> Cc: "loom-dev" <loom-dev at openjdk.org>
> Sent: Tuesday, January 13, 2026 9:00:25 AM
> Subject: Re: [External] : Re: Ephemeral threads
> On 13/01/2026 06:42, Alex Otenko wrote:
>>
>> I think there are plenty of designs with generators, iterators and
>> async where non-termination is not a bug.
>
> That is true is some other languages/runtimes. If Java were to add
> generators or some other exotic control flow in the future then there
> would be more spooky issues to work through, some of which overlap with
> the spooky issues that have come up in the discussion here.
>
> -Alan
More information about the loom-dev
mailing list