< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahAsserts.cpp

Print this page

        

@@ -360,18 +360,5 @@
   if (rp->is_alive_non_header() == NULL) {
     print_rp_failure("Shenandoah assert_rp_isalive_installed failed", rp->is_alive_non_header(),
                      file, line);
   }
 }
-
-void ShenandoahAsserts::assert_locked_or_shenandoah_safepoint(const Monitor* lock, const char* file, int line) {
-  if (ShenandoahSafepoint::is_at_shenandoah_safepoint()) {
-    return;
-  }
-
-  if (lock->owned_by_self()) {
-    return;
-  }
-
-  ShenandoahMessageBuffer msg("Must ba at a Shenandoah safepoint or held %s lock", lock->name());
-  report_vm_error(file, line, msg.buffer());
-}
< prev index next >