提交 35daeae1 编写于 作者: T twisti

6913869: Zero assert fix

Summary: Zero currently won't build on zSeries or PowerPC machines with assertions turned on.
Reviewed-by: twisti
Contributed-by: NGary Benson <gbenson@redhat.com>
上级 72621aa4
...@@ -3241,7 +3241,7 @@ _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM(JavaVM **vm, void **penv, v ...@@ -3241,7 +3241,7 @@ _JNI_IMPORT_OR_EXPORT_ jint JNICALL JNI_CreateJavaVM(JavaVM **vm, void **penv, v
jint b = Atomic::xchg(0xdeadbeef, &a); jint b = Atomic::xchg(0xdeadbeef, &a);
void *c = &a; void *c = &a;
void *d = Atomic::xchg_ptr(&b, &c); 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"); assert(c == &b && d == &a, "Atomic::xchg_ptr() works");
} }
#endif // ZERO && ASSERT #endif // ZERO && ASSERT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册