Ron Pressler ron.pressler at
Wed Nov 24 15:55:58 UTC 2021

On 24 Nov 2021, at 15:23, Pedro Lamarão <pedro.lamarao at<mailto:pedro.lamarao at>> wrote:

Hi Alan,
would it be enough to require this by API contract
and check it on the inside with IllegalStateException on violations?
I'm assuming that thread in this case is the platform thread on which the
Continuation was initially constructed.

Pedro Lamarão<>
Securing Critical Systems
Tel: +55 11 4380-6585

The thread could be any thread — platform or virtual. But yes, the construct would have to ensure that all calls are done on the same thread. Otherwise, we risk miscompilation (the JIT compiler works on the assumption that the current thread cannot change while executing a method; if it does, you might get strange results).

— Ron

More information about the loom-dev mailing list