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

Nathan Reynolds nathan.reynolds at oracle.com
Thu Nov 29 19:21:32 EST 2012


Wouldn't Retention Policy = CLASS be sufficient?  Class = "Annotations 
are to be recorded in the class file by the compiler but need not be 
retained by the VM at run time."

http://docs.oracle.com/javase/7/docs/api/java/lang/annotation/RetentionPolicy.html

Nathan Reynolds 
<http://psr.us.oracle.com/wiki/index.php/User:Nathan_Reynolds> | 
Architect | 602.333.9091
Oracle PSR Engineering <http://psr.us.oracle.com/> | Server Technology
On 11/29/2012 5:00 PM, Vitaly Davidovich wrote:
>
> 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 
> <mailto: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 <mailto: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
>>         <mailto:Concurrency-interest at cs.oswego.edu>
>>         http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>
>         _______________________________________________
>         Concurrency-interest mailing list
>         Concurrency-interest at cs.oswego.edu
>         <mailto: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/e4cd475c/attachment-0001.html>


More information about the Concurrency-interest mailing list