Thread Locals (was Re: State of Loom)
Andrew Haley
aph at redhat.com
Thu May 28 09:03:07 UTC 2020
On 27/05/2020 20:38, forax at univ-mlv.fr wrote:
> 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.
And the bound object is either immutable or non-preemptable. This all
sounds much to hairy to me.
Are we reaching for "Let's bind a StringCoding to a carrier thread" as
a proxy for "Let's make sure we don't create too many StringCodings" ?
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the loom-dev
mailing list