< prev index next >

src/hotspot/share/utilities/accessFlags.cpp

Print this page

        

*** 31,51 **** // Atomically update the flags with the bits given jint old_flags, new_flags, f; do { old_flags = _flags; new_flags = old_flags | bits; ! f = Atomic::cmpxchg(new_flags, &_flags, old_flags); } while(f != old_flags); } void AccessFlags::atomic_clear_bits(jint bits) { // Atomically update the flags with the bits given jint old_flags, new_flags, f; do { old_flags = _flags; new_flags = old_flags & ~bits; ! f = Atomic::cmpxchg(new_flags, &_flags, old_flags); } while(f != old_flags); } #if !defined(PRODUCT) || INCLUDE_JVMTI --- 31,51 ---- // Atomically update the flags with the bits given jint old_flags, new_flags, f; do { old_flags = _flags; new_flags = old_flags | bits; ! f = Atomic::cmpxchg(&_flags, old_flags, new_flags); } while(f != old_flags); } void AccessFlags::atomic_clear_bits(jint bits) { // Atomically update the flags with the bits given jint old_flags, new_flags, f; do { old_flags = _flags; new_flags = old_flags & ~bits; ! f = Atomic::cmpxchg(&_flags, old_flags, new_flags); } while(f != old_flags); } #if !defined(PRODUCT) || INCLUDE_JVMTI
< prev index next >