mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
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:
parent
915d9602fe
commit
3baf653c68
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue