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

changeset 7005
e0954897238a
parent 6992
2c6ef90f030a
child 7009
3f2894c5052e
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp	Wed Aug 06 08:47:40 2014 +0200
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp	Tue Apr 29 09:33:20 2014 +0200
     1.3 @@ -1190,6 +1190,30 @@
     1.4    void verify_dirty_young_list(HeapRegion* head) PRODUCT_RETURN;
     1.5    void verify_dirty_young_regions() PRODUCT_RETURN;
     1.6  
     1.7 +#ifndef PRODUCT
     1.8 +  // Make sure that the given bitmap has no marked objects in the
     1.9 +  // range [from,limit). If it does, print an error message and return
    1.10 +  // false. Otherwise, just return true. bitmap_name should be "prev"
    1.11 +  // or "next".
    1.12 +  bool verify_no_bits_over_tams(const char* bitmap_name, CMBitMapRO* bitmap,
    1.13 +                                HeapWord* from, HeapWord* limit);
    1.14 +
    1.15 +  // Verify that the prev / next bitmap range [tams,end) for the given
    1.16 +  // region has no marks. Return true if all is well, false if errors
    1.17 +  // are detected.
    1.18 +  bool verify_bitmaps(const char* caller, HeapRegion* hr);
    1.19 +#endif // PRODUCT
    1.20 +
    1.21 +  // If G1VerifyBitmaps is set, verify that the marking bitmaps for
    1.22 +  // the given region do not have any spurious marks. If errors are
    1.23 +  // detected, print appropriate error messages and crash.
    1.24 +  void check_bitmaps(const char* caller, HeapRegion* hr) PRODUCT_RETURN;
    1.25 +
    1.26 +  // If G1VerifyBitmaps is set, verify that the marking bitmaps do not
    1.27 +  // have any spurious marks. If errors are detected, print
    1.28 +  // appropriate error messages and crash.
    1.29 +  void check_bitmaps(const char* caller) PRODUCT_RETURN;
    1.30 +
    1.31    // verify_region_sets() performs verification over the region
    1.32    // lists. It will be compiled in the product code to be used when
    1.33    // necessary (i.e., during heap verification).

mercurial