6913869: Zero assert fix
Summary: Zero currently won't build on zSeries or PowerPC machines with assertions turned on.
Reviewed-by: twisti
Contributed-by: Gary Benson <gbenson@redhat.com>
--- a/hotspot/src/share/vm/prims/jni.cpp Mon Jan 04 00:22:57 2010 -0800
+++ b/hotspot/src/share/vm/prims/jni.cpp Mon Jan 04 03:34:40 2010 -0800
@@ -3241,7 +3241,7 @@
jint b = Atomic::xchg(0xdeadbeef, &a);
void *c = &a;
void *d = Atomic::xchg_ptr(&b, &c);
- assert(a == 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
+ assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
assert(c == &b && d == &a, "Atomic::xchg_ptr() works");
}
#endif // ZERO && ASSERT