8189333: Fix Zero build after Atomic::xchg changes
Reviewed-by: dholmes
This commit is contained in:
parent
947fc09db0
commit
d19e0c0bb2
@ -3898,7 +3898,7 @@ static jint JNI_CreateJavaVM_inner(JavaVM **vm, void **penv, void *args) {
|
|||||||
#if defined(ZERO) && defined(ASSERT)
|
#if defined(ZERO) && defined(ASSERT)
|
||||||
{
|
{
|
||||||
jint a = 0xcafebabe;
|
jint a = 0xcafebabe;
|
||||||
jint b = Atomic::xchg(0xdeadbeef, &a);
|
jint b = Atomic::xchg((jint) 0xdeadbeef, &a);
|
||||||
void *c = &a;
|
void *c = &a;
|
||||||
void *d = Atomic::xchg_ptr(&b, &c);
|
void *d = Atomic::xchg_ptr(&b, &c);
|
||||||
assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
|
assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user