< prev index next >

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

Print this page

        

@@ -23,11 +23,10 @@
 
 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHASSERTS_HPP
 #define SHARE_GC_SHENANDOAH_SHENANDOAHASSERTS_HPP
 
 #include "memory/iterator.hpp"
-#include "runtime/mutex.hpp"
 #include "utilities/formatBuffer.hpp"
 
 typedef FormatBuffer<8192> ShenandoahMessageBuffer;
 
 class ShenandoahAsserts {

@@ -64,12 +63,10 @@
   static void assert_not_in_cset_loc(void* interior_loc, const char* file, int line);
 
   static void assert_rp_isalive_not_installed(const char *file, int line);
   static void assert_rp_isalive_installed(const char *file, int line);
 
-  static void assert_locked_or_shenandoah_safepoint(const Monitor* lock, const char*file, int line);
-
 #ifdef ASSERT
 #define shenandoah_assert_in_heap(interior_loc, obj) \
                     ShenandoahAsserts::assert_in_heap(interior_loc, obj, __FILE__, __LINE__);
 #define shenandoah_assert_in_correct_region(interior_loc, obj) \
                     ShenandoahAsserts::assert_in_correct_region(interior_loc, obj, __FILE__, __LINE__);

@@ -125,16 +122,10 @@
 
 #define shenandoah_assert_rp_isalive_installed() \
                     ShenandoahAsserts::assert_rp_isalive_installed(__FILE__, __LINE__);
 #define shenandoah_assert_rp_isalive_not_installed() \
                     ShenandoahAsserts::assert_rp_isalive_not_installed(__FILE__, __LINE__);
-
-#define shenandoah_assert_safepoint() \
-                    assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Should be at Shenandoah Safepoints");
-
-#define shenandoah_assert_locked_or_safepoint(lock) \
-                    ShenandoahAsserts::assert_locked_or_shenandoah_safepoint(lock, __FILE__, __LINE__);
 #else
 #define shenandoah_assert_in_heap(interior_loc, obj)
 #define shenandoah_assert_in_correct_region(interior_loc, obj)
 
 #define shenandoah_assert_correct_if(interior_loc, obj, condition)

@@ -165,14 +156,10 @@
 #define shenandoah_assert_not_in_cset_loc_except(interior_loc, exception)
 #define shenandoah_assert_not_in_cset_loc(interior_loc)
 
 #define shenandoah_assert_rp_isalive_installed()
 #define shenandoah_assert_rp_isalive_not_installed()
-
-#define shenandoah_assert_safepoint()
-#define shenandoah_assert_locked_or_safepoint(lock)
-
 #endif
 
 #define shenandoah_not_implemented \
                     { fatal("Deliberately not implemented."); }
 #define shenandoah_not_implemented_return(v) \
< prev index next >