hotspot/src/share/vm/memory/freeList.hpp
changeset 27251 7d667f91ec8d
parent 22234 da823d78ad65
child 30764 fec48bf5a827
--- a/hotspot/src/share/vm/memory/freeList.hpp	Mon Oct 20 10:18:17 2014 +0200
+++ b/hotspot/src/share/vm/memory/freeList.hpp	Tue Oct 21 11:57:22 2014 +0200
@@ -56,15 +56,12 @@
 
 #ifdef ASSERT
   Mutex*        _protecting_lock;
+  void assert_proper_lock_protection_work() const;
 #endif
 
   // Asserts false if the protecting lock (if any) is not held.
-  void assert_proper_lock_protection_work() const PRODUCT_RETURN;
   void assert_proper_lock_protection() const {
-#ifdef ASSERT
-    if (_protecting_lock != NULL)
-      assert_proper_lock_protection_work();
-#endif
+    DEBUG_ONLY(assert_proper_lock_protection_work());
   }
 
   void increment_count()    {