comparison src/share/vm/gc_implementation/g1/heapRegion.hpp @ 811:830ca2573896

6850846: G1: extend G1 marking verification Summary: extend G1 marking verification to use either the "prev" or "next" marking information, as appropriate. Reviewed-by: johnc, ysr
author tonyp
date Fri, 12 Jun 2009 16:20:16 -0400
parents 29e7d79232b9
children 2c79770d1f6e
comparison
equal deleted inserted replaced
809:6e2afda171db 811:830ca2573896
780 virtual void reset_after_compaction(); 780 virtual void reset_after_compaction();
781 781
782 void print() const; 782 void print() const;
783 void print_on(outputStream* st) const; 783 void print_on(outputStream* st) const;
784 784
785 // Override 785 // use_prev_marking == true -> use "prev" marking information,
786 // use_prev_marking == false -> use "next" marking information
787 // NOTE: Only the "prev" marking information is guaranteed to be
788 // consistent most of the time, so most calls to this should use
789 // use_prev_marking == true. Currently, there is only one case where
790 // this is called with use_prev_marking == false, which is to verify
791 // the "next" marking information at the end of remark.
792 void verify(bool allow_dirty, bool use_prev_marking) const;
793
794 // Override; it uses the "prev" marking information
786 virtual void verify(bool allow_dirty) const; 795 virtual void verify(bool allow_dirty) const;
787 796
788 #ifdef DEBUG 797 #ifdef DEBUG
789 HeapWord* allocate(size_t size); 798 HeapWord* allocate(size_t size);
790 #endif 799 #endif