changeset 47627:6218d903d2f2

8189333: Fix Zero build after Atomic::xchg changes Reviewed-by: dholmes
author rkennke
date Sun, 15 Oct 2017 17:37:29 -0400
parents 52cf482c4d28
children ba91aaeec3a9
files src/hotspot/share/prims/jni.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/jni.cpp	Sat Oct 14 00:19:29 2017 +0200
+++ b/src/hotspot/share/prims/jni.cpp	Sun Oct 15 17:37:29 2017 -0400
@@ -3898,7 +3898,7 @@
 #if defined(ZERO) && defined(ASSERT)
   {
     jint a = 0xcafebabe;
-    jint b = Atomic::xchg(0xdeadbeef, &a);
+    jint b = Atomic::xchg((jint) 0xdeadbeef, &a);
     void *c = &a;
     void *d = Atomic::xchg_ptr(&b, &c);
     assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");