carrier local
Kasper Nielsen
kasperni at gmail.com
Fri Apr 3 07:35:03 UTC 2020
On Thu, 2 Apr 2020 at 21:07, Thomas May <tmay at clearwateranalytics.com> wrote:
>
> LongAdder would be a good example where you'd want carrier local storage rather than thread local. Having it ThreadLocal would allocate more memory than necessary.
I think you would be better off with processor local state in most
cases where you
are trying to avoid contention as mentioned in the Loom proposal [1]
and this RFE [2].
/Kasper
[1] https://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html
[2] https://bugs.openjdk.java.net/browse/JDK-7065539
More information about the loom-dev
mailing list