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

oleksandr otenko oleksandr.otenko at oracle.com
Thu Nov 29 19:01:25 EST 2012


I don't understand why JVM can't see the RuntimeInvisibleAnnotation 
attribute at class load time. The layout hint is implemented in native, 
and the Java land cannot do anything about that annotation.

Alex


On 29/11/2012 23:58, Vitaly Davidovich 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20121130/3bef73f8/attachment.html>


More information about the Concurrency-interest mailing list