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

oleksandr otenko oleksandr.otenko at oracle.com
Fri Nov 30 08:18:59 EST 2012

I think the layout monitoring tools will be none the wiser even if they 
know which fields were annotated. After all, it is only a hint, and not 
a directive on how exactly to lay out the fields.

In other words, I see no reason to expose this annotation to runtime 
tools. If JVM wants to expose something useful about the actual object 
layout, it probably won't be annotations.


On 30/11/2012 10:07, Aleksey Shipilev wrote:
> On 11/30/2012 03:42 AM, oleksandr otenko wrote:
>> Does it need to have Retention policy = RUNTIME?
> That's an interesting point, and that is probably solves the compability
> problems, as Remi said, because you will not be able to kick off
> NoSuchClassException while traversing annotations.
> The downside is that (layout) monitoring tools might want to detect the
> annotation at runtime, if that is not a concern, I'm OK with making it
> -Aleksey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20121130/da4b1301/attachment.html>

More information about the Concurrency-interest mailing list