Draft JEP on enhanced volatiles

Guy Steele guy.steele at oracle.com
Fri Feb 7 21:09:07 UTC 2014


On Feb 7, 2014, at 3:44 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

. . .
> As a limitation, I'd call out that its not obvious how this would scale to DCAS.

Just off the top of my head:

  (var1, var2).doubleCompareAndSet(e1, e2, x1, x2)

thus providing access to a VolatileIntInt interface that provides the doubleCompareAndSet method.

—Guy




More information about the core-libs-dev mailing list