6913869: Zero assert fix

Zero currently won't build on zSeries or PowerPC machines with assertions turned on.

Reviewed-by: twisti
This commit is contained in:
Gary Benson 2010-01-04 03:34:40 -08:00 committed by Christian Thalinger
parent 915d9602fe
commit 3baf653c68

View file

@ -3241,7 +3241,7 @@ _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM(JavaVM **vm, void **penv, v
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