hotspot/src/share/vm/code/nmethod.cpp
changeset 24317 b693c6344b16
parent 24316 29ac69b2f1cc
parent 24309 fc2950805050
child 24351 61b33cc6d3cf
--- a/hotspot/src/share/vm/code/nmethod.cpp	Mon Apr 28 12:39:12 2014 +0200
+++ b/hotspot/src/share/vm/code/nmethod.cpp	Mon Apr 28 03:44:35 2014 -0700
@@ -2288,13 +2288,13 @@
 void nmethodLocker::lock_nmethod(nmethod* nm, bool zombie_ok) {
   if (nm == NULL)  return;
   Atomic::inc(&nm->_lock_count);
-  guarantee(zombie_ok || !nm->is_zombie(), "cannot lock a zombie method");
+  assert(zombie_ok || !nm->is_zombie(), "cannot lock a zombie method");
 }
 
 void nmethodLocker::unlock_nmethod(nmethod* nm) {
   if (nm == NULL)  return;
   Atomic::dec(&nm->_lock_count);
-  guarantee(nm->_lock_count >= 0, "unmatched nmethod lock/unlock");
+  assert(nm->_lock_count >= 0, "unmatched nmethod lock/unlock");
 }