mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-05 04:31:36 +00:00
8039520: More atomicity of atomic updates
Reviewed-by: dl, skoivu, igerasim
This commit is contained in:
parent
6d03ea4ffe
commit
db34776a9e
@ -334,6 +334,8 @@ public abstract class AtomicReferenceFieldUpdater<T,V> {
|
||||
|
||||
if (vclass != fieldClass)
|
||||
throw new ClassCastException();
|
||||
if (vclass.isPrimitive())
|
||||
throw new IllegalArgumentException("Must be reference type");
|
||||
|
||||
if (!Modifier.isVolatile(modifiers))
|
||||
throw new IllegalArgumentException("Must be volatile type");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user