# HG changeset patch # User rkennke # Date 1508101749 -7200 # Sun Oct 15 23:09:09 2017 +0200 # Node ID d64b2d08412394e74757652ce45c85722d872447 # Parent 52cf482c4d28c0c7fc8daa912a93ce4f0532485c 8189333: Fix Zero build after Atomic::xchg changes diff --git a/src/hotspot/share/prims/jni.cpp b/src/hotspot/share/prims/jni.cpp --- a/src/hotspot/share/prims/jni.cpp +++ b/src/hotspot/share/prims/jni.cpp @@ -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");