Mercurial > hg > truffle
diff src/share/vm/gc_interface/collectedHeap.hpp @ 4073:53074c2c4600
7099849: G1: include heap region information in hs_err files
Reviewed-by: johnc, brutisso, poonam
author | tonyp |
---|---|
date | Tue, 08 Nov 2011 00:41:28 -0500 |
parents | e5928e7dab26 |
children | 3c648b9ad052 |
line wrap: on
line diff
--- a/src/share/vm/gc_interface/collectedHeap.hpp Mon Nov 07 22:11:12 2011 -0500 +++ b/src/share/vm/gc_interface/collectedHeap.hpp Tue Nov 08 00:41:28 2011 -0500 @@ -590,13 +590,27 @@ void pre_full_gc_dump(); void post_full_gc_dump(); - virtual void print() const = 0; + // Print heap information on the given outputStream. virtual void print_on(outputStream* st) const = 0; + // The default behavior is to call print_on() on tty. + virtual void print() const { + print_on(tty); + } + // Print more detailed heap information on the given + // outputStream. The default behaviour is to call print_on(). It is + // up to each subclass to override it and add any additional output + // it needs. + virtual void print_extended_on(outputStream* st) const { + print_on(st); + } // Print all GC threads (other than the VM thread) // used by this heap. virtual void print_gc_threads_on(outputStream* st) const = 0; - void print_gc_threads() { print_gc_threads_on(tty); } + // The default behavior is to call print_gc_threads_on() on tty. + void print_gc_threads() { + print_gc_threads_on(tty); + } // Iterator for all GC threads (other than VM thread) virtual void gc_threads_do(ThreadClosure* tc) const = 0;