src/share/vm/memory/gcLocker.hpp

Print this page
rev 6521 : 8044775: Improve usage of umbrella header atomic.inline.hpp.

@@ -92,22 +92,12 @@
     // 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
-  }
+  inline static void increment_debug_jni_lock_count();
+  inline static void decrement_debug_jni_lock_count();
 
   // Set the current lock count
   static void set_jni_lock_count(int count) {
     _jni_lock_count = count;
     verify_critical_count();