588 |
588 |
589 // Generate any dumps preceding or following a full gc |
589 // Generate any dumps preceding or following a full gc |
590 void pre_full_gc_dump(); |
590 void pre_full_gc_dump(); |
591 void post_full_gc_dump(); |
591 void post_full_gc_dump(); |
592 |
592 |
593 virtual void print() const = 0; |
593 // Print heap information on the given outputStream. |
594 virtual void print_on(outputStream* st) const = 0; |
594 virtual void print_on(outputStream* st) const = 0; |
|
595 // The default behavior is to call print_on() on tty. |
|
596 virtual void print() const { |
|
597 print_on(tty); |
|
598 } |
|
599 // Print more detailed heap information on the given |
|
600 // outputStream. The default behaviour is to call print_on(). It is |
|
601 // up to each subclass to override it and add any additional output |
|
602 // it needs. |
|
603 virtual void print_extended_on(outputStream* st) const { |
|
604 print_on(st); |
|
605 } |
595 |
606 |
596 // Print all GC threads (other than the VM thread) |
607 // Print all GC threads (other than the VM thread) |
597 // used by this heap. |
608 // used by this heap. |
598 virtual void print_gc_threads_on(outputStream* st) const = 0; |
609 virtual void print_gc_threads_on(outputStream* st) const = 0; |
599 void print_gc_threads() { print_gc_threads_on(tty); } |
610 // The default behavior is to call print_gc_threads_on() on tty. |
|
611 void print_gc_threads() { |
|
612 print_gc_threads_on(tty); |
|
613 } |
600 // Iterator for all GC threads (other than VM thread) |
614 // Iterator for all GC threads (other than VM thread) |
601 virtual void gc_threads_do(ThreadClosure* tc) const = 0; |
615 virtual void gc_threads_do(ThreadClosure* tc) const = 0; |
602 |
616 |
603 // Print any relevant tracing info that flags imply. |
617 // Print any relevant tracing info that flags imply. |
604 // Default implementation does nothing. |
618 // Default implementation does nothing. |