[concurrency-interest] Fwd: RFR (S): JEP-142: Reduce Cache Contention on Specified Fields

Jeff Hain jeffhain at rocketmail.com
Fri Nov 23 03:43:32 EST 2012

>FYI. Although the implementation is Hotspot-specific, the API is not.
>Would like to hear the opinions :)
Great news.
How does it fit with classes such as AtomicLong?
Will there be padded versions of these, or would
it be possible to have @Contended applied on a
final reference, have the same effect than
@Contended applied to the class of the referenced
instance, which would allow to do things such as:
class SomeClass {
    final AtomicLong counter = new AtomicLong();
void someMethod() {
    final AtomicLong counter = new AtomicLong();
(since AtomicLong only holds one non-final field,
and @Contended should have no effect on final fields)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20121123/61efee68/attachment.html>

More information about the Concurrency-interest mailing list