Generators
Ron Pressler
ron.pressler at oracle.com
Wed Nov 24 15:55:58 UTC 2021
On 24 Nov 2021, at 15:23, Pedro Lamarão <pedro.lamarao at prodist.com.br<mailto:pedro.lamarao at prodist.com.br>> 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
https://www.prodist.com.br<https://www.prodist.com.br/>
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