src/share/vm/memory/gcLocker.hpp

Print this page
rev 6521 : 8044775: Improve usage of umbrella header atomic.inline.hpp.
Reviewed-by: stefank, kvn

*** 92,113 **** // is_active. return needs_gc() && is_active_internal(); } // In debug mode track the locking state at all times ! static void increment_debug_jni_lock_count() { ! #ifdef ASSERT ! assert(_debug_jni_lock_count >= 0, "bad value"); ! Atomic::inc(&_debug_jni_lock_count); ! #endif ! } ! static void decrement_debug_jni_lock_count() { ! #ifdef ASSERT ! assert(_debug_jni_lock_count > 0, "bad value"); ! Atomic::dec(&_debug_jni_lock_count); ! #endif ! } // Set the current lock count static void set_jni_lock_count(int count) { _jni_lock_count = count; verify_critical_count(); --- 92,103 ---- // is_active. return needs_gc() && is_active_internal(); } // In debug mode track the locking state at all times ! static void increment_debug_jni_lock_count() NOT_DEBUG_RETURN; ! static void decrement_debug_jni_lock_count() NOT_DEBUG_RETURN; // Set the current lock count static void set_jni_lock_count(int count) { _jni_lock_count = count; verify_critical_count();