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

Doug Lea dl at cs.oswego.edu
Tue Nov 27 13:01:43 EST 2012


On 11/27/12 12:51, √iktor Ҡlang wrote:
> So how would I use it within Akka for instance? (embed jsr166 and accept
> potential duplicate definitions?)

You'll need to wait for a JVM (or preliminary build) that supports it,
and then import sun.misc.Contended. That is one reason to place this
in a JVM-dependent package -- the annotation does you no good
without JVM support.

-Doug


>
> Cheers,
>>
> On Tue, Nov 27, 2012 at 6:40 PM, Doug Lea <dl at cs.oswego.edu
> <mailto:dl at cs.oswego.edu>> 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
>     <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
>     <http://cs.oswego.edu/mailman/listinfo/concurrency-interest>
>
>
>
>
> --
> Viktor Klang
>
> Akka Tech Lead
> Typesafe <http://www.typesafe.com/>- The software stack for applications that scale
>
> Twitter: @viktorklang
>





More information about the Concurrency-interest mailing list