src/share/vm/gc_interface/collectedHeap.hpp

changeset 3269
53074c2c4600
parent 3205
e5928e7dab26
child 3335
3c648b9ad052
     1.1 --- a/src/share/vm/gc_interface/collectedHeap.hpp	Mon Nov 07 22:11:12 2011 -0500
     1.2 +++ b/src/share/vm/gc_interface/collectedHeap.hpp	Tue Nov 08 00:41:28 2011 -0500
     1.3 @@ -590,13 +590,27 @@
     1.4    void pre_full_gc_dump();
     1.5    void post_full_gc_dump();
     1.6  
     1.7 -  virtual void print() const = 0;
     1.8 +  // Print heap information on the given outputStream.
     1.9    virtual void print_on(outputStream* st) const = 0;
    1.10 +  // The default behavior is to call print_on() on tty.
    1.11 +  virtual void print() const {
    1.12 +    print_on(tty);
    1.13 +  }
    1.14 +  // Print more detailed heap information on the given
    1.15 +  // outputStream. The default behaviour is to call print_on(). It is
    1.16 +  // up to each subclass to override it and add any additional output
    1.17 +  // it needs.
    1.18 +  virtual void print_extended_on(outputStream* st) const {
    1.19 +    print_on(st);
    1.20 +  }
    1.21  
    1.22    // Print all GC threads (other than the VM thread)
    1.23    // used by this heap.
    1.24    virtual void print_gc_threads_on(outputStream* st) const = 0;
    1.25 -  void print_gc_threads() { print_gc_threads_on(tty); }
    1.26 +  // The default behavior is to call print_gc_threads_on() on tty.
    1.27 +  void print_gc_threads() {
    1.28 +    print_gc_threads_on(tty);
    1.29 +  }
    1.30    // Iterator for all GC threads (other than VM thread)
    1.31    virtual void gc_threads_do(ThreadClosure* tc) const = 0;
    1.32  

mercurial