hotspot/test/compiler/intrinsics/unsafe/TestCAEAntiDep.java
changeset 45514 0fc9cc73ce45
parent 42080 1e906304457b
--- a/hotspot/test/compiler/intrinsics/unsafe/TestCAEAntiDep.java	Tue Jun 06 13:31:34 2017 -0400
+++ b/hotspot/test/compiler/intrinsics/unsafe/TestCAEAntiDep.java	Mon Jun 05 15:52:09 2017 -0700
@@ -1,4 +1,5 @@
 /*
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2016, Red Hat, Inc. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
@@ -53,7 +54,7 @@
     }
 
     static int m(TestCAEAntiDep test, Object expected, Object x) {
-        C old = (C)UNSAFE.compareAndExchangeObjectVolatile(test, O_OFFSET, expected, x);
+        C old = (C)UNSAFE.compareAndExchangeObject(test, O_OFFSET, expected, x);
         int res = old.f1;
         old.f1 = 0x42;
         return res;