提交 912c1f85 编写于 作者: C chegar

8039520: More atomicity of atomic updates

Reviewed-by: dl, skoivu, igerasim
上级 f5ff3351
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册