src/hotspot/share/prims/jni.cpp
changeset 47634 6a0c42c40cd1
parent 47627 6218d903d2f2
child 47659 a8e9aff89f7b
--- a/src/hotspot/share/prims/jni.cpp	Mon Oct 16 20:22:41 2017 +0000
+++ b/src/hotspot/share/prims/jni.cpp	Mon Oct 16 22:36:06 2017 -0400
@@ -3777,7 +3777,7 @@
   intptr_t *a = (intptr_t *) jni_functions();
   intptr_t *b = (intptr_t *) new_jni_NativeInterface;
   for (uint i=0; i <  sizeof(struct JNINativeInterface_)/sizeof(void *); i++) {
-    Atomic::store_ptr(*b++, a++);
+    Atomic::store(*b++, a++);
   }
 }
 
@@ -3900,9 +3900,9 @@
     jint a = 0xcafebabe;
     jint b = Atomic::xchg((jint) 0xdeadbeef, &a);
     void *c = &a;
-    void *d = Atomic::xchg_ptr(&b, &c);
+    void *d = Atomic::xchg(&b, &c);
     assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
-    assert(c == &b && d == &a, "Atomic::xchg_ptr() works");
+    assert(c == &b && d == &a, "Atomic::xchg() works");
   }
 #endif // ZERO && ASSERT