comparison src/share/vm/prims/jni.cpp @ 1132:896da934748c

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>
author twisti
date Mon, 04 Jan 2010 03:34:40 -0800
parents 8e7adf982378
children 4ce7240d622c
comparison
equal deleted inserted replaced
1131:40e7c1d24e4a 1132:896da934748c
3239 { 3239 {
3240 jint a = 0xcafebabe; 3240 jint a = 0xcafebabe;
3241 jint b = Atomic::xchg(0xdeadbeef, &a); 3241 jint b = Atomic::xchg(0xdeadbeef, &a);
3242 void *c = &a; 3242 void *c = &a;
3243 void *d = Atomic::xchg_ptr(&b, &c); 3243 void *d = Atomic::xchg_ptr(&b, &c);
3244 assert(a == 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works"); 3244 assert(a == (jint) 0xdeadbeef && b == (jint) 0xcafebabe, "Atomic::xchg() works");
3245 assert(c == &b && d == &a, "Atomic::xchg_ptr() works"); 3245 assert(c == &b && d == &a, "Atomic::xchg_ptr() works");
3246 } 3246 }
3247 #endif // ZERO && ASSERT 3247 #endif // ZERO && ASSERT
3248 3248
3249 // At the moment it's only possible to have one Java VM, 3249 // At the moment it's only possible to have one Java VM,