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

Gregg Wonderly gregg at cytetech.com
Wed Nov 28 11:42:55 EST 2012

The annotation doesn't have to have the Hotspot support in earlier or 
non-implementing environments (Dalvik for example).  Just putting the @interface 
definition into all appropriate distributions, would seem like the easy way to 
introduce it.  Then, later, actual work can occur to make the changes needed or 
each environment.

Going down that path, makes me feel like having it in a more "public" package 
would be a better choice.  The name "Contended" is now going to be a "reserved" 
name for many people, when used in annotation form.  So, why not just make it a 
publicly defined "annotation" which has appropriate implementation in 
appropriate environments?


On 11/28/2012 3:53 AM, Aleksey Shipilev wrote:
> On 11/28/2012 01:44 PM, √iktor Ҡlang wrote:
>>      Would it help adoption if this would get backported to JDK7 (you will
>>      have to have the recent update release nevertheless)? Would that be
>>      sensible to backport to JDK6 at all?
>> Even if that was done, what about J9, Dalvik etc?
>> I think the sad fact here is that it will essentially only be usable
>> within the JDK for the foreseeable future.
> (I'll let Doug to chime in on J9, Dalvik, etc. endeavors with
> @Contended, if there are any).
> My question is very pragmatic though: if there is a strong desire to use
> this within Oracle JDK7, we can explore how much it would take to
> backport. Our current inclination is to use that in JDK8 only, but we
> can take the community response into the consideration.
> -Aleksey.
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest

More information about the Concurrency-interest mailing list