Thread Locals (was Re: State of Loom)

Alan Bateman Alan.Bateman at oracle.com
Thu May 28 08:20:31 UTC 2020


On 27/05/2020 20:38, forax at univ-mlv.fr wrote:
> yes,
> it's only safe to use a thread local bound to a carrier thread if you are using it as a cache, like StringCoding does.
>
That's actually not safe either. In this case, charset encoders are 
pluggable so encoding may involve running arbitrary code that gets 
preempted when it does a locking or I/O operation.

-Alan


More information about the loom-dev mailing list