[concurrency-interest] @Contended (JEP-142)

Vitaly Davidovich vitalyd at gmail.com
Thu Nov 29 19:00:16 EST 2012


Or rather, it looks for it at class load time and marks the field(s) (or
klass) that are contended - that marking is then used by class layout.

Sent from my phone
On Nov 29, 2012 6:58 PM, "Vitaly Davidovich" <vitalyd at gmail.com> wrote:

> Yes, the JVM looks for it at class layout time (i.e. runtime :)).
>
> Sent from my phone
> On Nov 29, 2012 6:53 PM, "oleksandr otenko" <oleksandr.otenko at oracle.com>
> wrote:
>
>>  Does it need to have Retention policy = RUNTIME?
>>
>> Alex
>>
>> On 27/11/2012 17:40, Doug Lea wrote:
>>
>>
>> Aleksey has been making progress on a hotspot implementation of
>> the @Contended annotation. While this progresses, we'd also
>> like continued feedback about the java-level information, guidance,
>> examples, etc.
>>
>> As a compromise that helps avoid controversy about its status
>> and specs, the @Contended annotation itself will probably be placed
>> in sun.misc, not java.util.concurrent.*. A staging version of
>> Contended.java is in our CVS though, with javadoc at:
>>
>> http://gee.cs.oswego.edu/dl/jsr166/src/dl/sun/misc/sun/misc/Contended.html
>>
>> Any comments and suggestions will be welcome.
>>
>> -Doug
>>
>> _______________________________________________
>> Concurrency-interest mailing list
>> Concurrency-interest at cs.oswego.edu
>> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>>
>>
>> _______________________________________________
>> Concurrency-interest mailing list
>> Concurrency-interest at cs.oswego.edu
>> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20121129/63ace822/attachment.html>


More information about the Concurrency-interest mailing list