RFR (S): JEP-142: Reduce Cache Contention on Specified Fields
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Nov 26 08:44:51 PST 2012
On 11/26/2012 08:22 PM, Doug Lea wrote:
> One small suggestion to slightly appease the nanny-state folks.
> How about burying the annotation one lever deeper to
> java.util.concurrent.atomic.
But the construction of @Contended has nothing to do with atomics,
right? (Yes, the sanest use case is to protect atomically-updated
fields.) "Nanny-state folks" would naturally presume annotating the
plain field with @Contended will turn all operations on that field into
atomics :)
Alternatives:
java.util.concurrent.hints.Contended
java.util.concurrent.expert.Contended
java.util.concurrent.unsafe.Contended
java.util.concurrent.herebedragons.Contended :)
I think the high-level annotation is already good.
-Aleksey.
More information about the hotspot-dev
mailing list