< prev index next >

src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp

Print this page




1104 #ifndef PRODUCT
1105   // Make sure that the given bitmap has no marked objects in the
1106   // range [from,limit). If it does, print an error message and return
1107   // false. Otherwise, just return true. bitmap_name should be "prev"
1108   // or "next".
1109   bool verify_no_bits_over_tams(const char* bitmap_name, CMBitMapRO* bitmap,
1110                                 HeapWord* from, HeapWord* limit);
1111 
1112   // Verify that the prev / next bitmap range [tams,end) for the given
1113   // region has no marks. Return true if all is well, false if errors
1114   // are detected.
1115   bool verify_bitmaps(const char* caller, HeapRegion* hr);
1116 
1117   // True if the heap_lock is held by the a non-gc thread invoking a gc
1118   // operation.
1119   bool _thread_holds_heap_lock_for_gc;
1120   // Returns true if the calling thread holds the heap lock,
1121   // or the calling thread is a par gc thread and the heap_lock is held
1122   // by the vm thread doing a gc operation.
1123   bool heap_lock_held_for_gc();
1124 
1125   void set_heap_lock_held_for_gc(bool value) { _thread_holds_heap_lock_for_gc = value; }
1126 
1127 #endif // PRODUCT


1128 
1129   // If G1VerifyBitmaps is set, verify that the marking bitmaps for
1130   // the given region do not have any spurious marks. If errors are
1131   // detected, print appropriate error messages and crash.
1132   void check_bitmaps(const char* caller, HeapRegion* hr) PRODUCT_RETURN;
1133 
1134   // If G1VerifyBitmaps is set, verify that the marking bitmaps do not
1135   // have any spurious marks. If errors are detected, print
1136   // appropriate error messages and crash.
1137   void check_bitmaps(const char* caller) PRODUCT_RETURN;
1138 
1139   // Do sanity check on the contents of the in-cset fast test table.
1140   bool check_cset_fast_test() PRODUCT_RETURN_( return true; );
1141 
1142   // verify_region_sets() performs verification over the region
1143   // lists. It will be compiled in the product code to be used when
1144   // necessary (i.e., during heap verification).
1145   void verify_region_sets();
1146 
1147   // verify_region_sets_optional() is planted in the code for




1104 #ifndef PRODUCT
1105   // Make sure that the given bitmap has no marked objects in the
1106   // range [from,limit). If it does, print an error message and return
1107   // false. Otherwise, just return true. bitmap_name should be "prev"
1108   // or "next".
1109   bool verify_no_bits_over_tams(const char* bitmap_name, CMBitMapRO* bitmap,
1110                                 HeapWord* from, HeapWord* limit);
1111 
1112   // Verify that the prev / next bitmap range [tams,end) for the given
1113   // region has no marks. Return true if all is well, false if errors
1114   // are detected.
1115   bool verify_bitmaps(const char* caller, HeapRegion* hr);
1116 
1117   // True if the heap_lock is held by the a non-gc thread invoking a gc
1118   // operation.
1119   bool _thread_holds_heap_lock_for_gc;
1120   // Returns true if the calling thread holds the heap lock,
1121   // or the calling thread is a par gc thread and the heap_lock is held
1122   // by the vm thread doing a gc operation.
1123   bool heap_lock_held_for_gc();



1124 #endif // PRODUCT
1125 
1126   void set_heap_lock_held_for_gc(bool value) PRODUCT_RETURN;
1127 
1128   // If G1VerifyBitmaps is set, verify that the marking bitmaps for
1129   // the given region do not have any spurious marks. If errors are
1130   // detected, print appropriate error messages and crash.
1131   void check_bitmaps(const char* caller, HeapRegion* hr) PRODUCT_RETURN;
1132 
1133   // If G1VerifyBitmaps is set, verify that the marking bitmaps do not
1134   // have any spurious marks. If errors are detected, print
1135   // appropriate error messages and crash.
1136   void check_bitmaps(const char* caller) PRODUCT_RETURN;
1137 
1138   // Do sanity check on the contents of the in-cset fast test table.
1139   bool check_cset_fast_test() PRODUCT_RETURN_( return true; );
1140 
1141   // verify_region_sets() performs verification over the region
1142   // lists. It will be compiled in the product code to be used when
1143   // necessary (i.e., during heap verification).
1144   void verify_region_sets();
1145 
1146   // verify_region_sets_optional() is planted in the code for


< prev index next >