RFR 8162108 Rename weakCompareAndSetVolatile to weakCompareAndSet

Paul Sandoz paul.sandoz at oracle.com
Thu Aug 11 00:03:21 UTC 2016


Hi

Please review:

  http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8162108-rename-weakCompareAndSetVolatile/webrev/ <http://cr.openjdk.java.net/~psandoz/jdk9/JDK-8162108-rename-weakCompareAndSetVolatile/webrev/>

This is a refactoring to produce a consistent naming scheme for the VarHandle Read Modify Write (RMW) methods. The unqualified methods default to volatile access.

(And i hope this is the last modifying to the API signatures)

This touches 166 classes that use or refer to the weak plain/volatile methods.

The plan is to follow up deprecating (*not* for removal) the weakCompareAndSet methods on j.u.concurrent.atomic.* classes and add  weakCompareAndSetPlain methods. Analysis via grepcode shows very little usages of the Atomic*.weakCompareAndSet methods.

A further plan is to rename the Unsafe methods s/Swap/Set, add Plain qualifier etc.

Paul.


More information about the core-libs-dev mailing list