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

Print this page
rev 6498 : 8044796: G1: Enable G1CollectedHeap::stop()
Reviewed-by:


1667   bool is_obj_dead_cond(const oop obj,
1668                         const VerifyOption vo) const;
1669 
1670   // Printing
1671 
1672   virtual void print_on(outputStream* st) const;
1673   virtual void print_extended_on(outputStream* st) const;
1674   virtual void print_on_error(outputStream* st) const;
1675 
1676   virtual void print_gc_threads_on(outputStream* st) const;
1677   virtual void gc_threads_do(ThreadClosure* tc) const;
1678 
1679   // Override
1680   void print_tracing_info() const;
1681 
1682   // The following two methods are helpful for debugging RSet issues.
1683   void print_cset_rsets() PRODUCT_RETURN;
1684   void print_all_rsets() PRODUCT_RETURN;
1685 
1686 public:
1687   void stop_conc_gc_threads();
1688 
1689   size_t pending_card_num();
1690   size_t cards_scanned();
1691 
1692 protected:
1693   size_t _max_heap_capacity;
1694 };
1695 
1696 class G1ParGCAllocBuffer: public ParGCAllocBuffer {
1697 private:
1698   bool        _retired;
1699 
1700 public:
1701   G1ParGCAllocBuffer(size_t gclab_word_size);
1702   virtual ~G1ParGCAllocBuffer() {
1703     guarantee(_retired, "Allocation buffer has not been retired");
1704   }
1705 
1706   virtual void set_buf(HeapWord* buf) {
1707     ParGCAllocBuffer::set_buf(buf);
1708     _retired = false;




1667   bool is_obj_dead_cond(const oop obj,
1668                         const VerifyOption vo) const;
1669 
1670   // Printing
1671 
1672   virtual void print_on(outputStream* st) const;
1673   virtual void print_extended_on(outputStream* st) const;
1674   virtual void print_on_error(outputStream* st) const;
1675 
1676   virtual void print_gc_threads_on(outputStream* st) const;
1677   virtual void gc_threads_do(ThreadClosure* tc) const;
1678 
1679   // Override
1680   void print_tracing_info() const;
1681 
1682   // The following two methods are helpful for debugging RSet issues.
1683   void print_cset_rsets() PRODUCT_RETURN;
1684   void print_all_rsets() PRODUCT_RETURN;
1685 
1686 public:


1687   size_t pending_card_num();
1688   size_t cards_scanned();
1689 
1690 protected:
1691   size_t _max_heap_capacity;
1692 };
1693 
1694 class G1ParGCAllocBuffer: public ParGCAllocBuffer {
1695 private:
1696   bool        _retired;
1697 
1698 public:
1699   G1ParGCAllocBuffer(size_t gclab_word_size);
1700   virtual ~G1ParGCAllocBuffer() {
1701     guarantee(_retired, "Allocation buffer has not been retired");
1702   }
1703 
1704   virtual void set_buf(HeapWord* buf) {
1705     ParGCAllocBuffer::set_buf(buf);
1706     _retired = false;