< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page




 450   virtual void print_on(outputStream* st) const = 0;
 451   // The default behavior is to call print_on() on tty.
 452   virtual void print() const;
 453 
 454   // Print more detailed heap information on the given
 455   // outputStream. The default behavior is to call print_on(). It is
 456   // up to each subclass to override it and add any additional output
 457   // it needs.
 458   virtual void print_extended_on(outputStream* st) const {
 459     print_on(st);
 460   }
 461 
 462   virtual void print_on_error(outputStream* st) const;
 463 
 464   // Used to print information about locations in the hs_err file.
 465   virtual bool print_location(outputStream* st, void* addr) const = 0;
 466 
 467   // Iterator for all GC threads (other than VM thread)
 468   virtual void gc_threads_do(ThreadClosure* tc) const = 0;
 469 
 470   // Runs the given task with (up to) the requested number of workers.
 471   // Some GCs don't support parallel worker threads and will run the
 472   // task in one thread, with worker id 0.
 473   void run_task_at_safepoint(AbstractGangTask* task, uint num_workers);
 474 
 475   // Print any relevant tracing info that flags imply.
 476   // Default implementation does nothing.
 477   virtual void print_tracing_info() const = 0;
 478 
 479   void print_heap_before_gc();
 480   void print_heap_after_gc();
 481 
 482   // Registering and unregistering an nmethod (compiled code) with the heap.
 483   virtual void register_nmethod(nmethod* nm) = 0;
 484   virtual void unregister_nmethod(nmethod* nm) = 0;
 485   // Callback for when nmethod is about to be deleted.
 486   virtual void flush_nmethod(nmethod* nm) = 0;
 487   virtual void verify_nmethod(nmethod* nm) = 0;
 488 
 489   void trace_heap_before_gc(const GCTracer* gc_tracer);
 490   void trace_heap_after_gc(const GCTracer* gc_tracer);
 491 
 492   // Heap verification
 493   virtual void verify(VerifyOption option) = 0;
 494 




 450   virtual void print_on(outputStream* st) const = 0;
 451   // The default behavior is to call print_on() on tty.
 452   virtual void print() const;
 453 
 454   // Print more detailed heap information on the given
 455   // outputStream. The default behavior is to call print_on(). It is
 456   // up to each subclass to override it and add any additional output
 457   // it needs.
 458   virtual void print_extended_on(outputStream* st) const {
 459     print_on(st);
 460   }
 461 
 462   virtual void print_on_error(outputStream* st) const;
 463 
 464   // Used to print information about locations in the hs_err file.
 465   virtual bool print_location(outputStream* st, void* addr) const = 0;
 466 
 467   // Iterator for all GC threads (other than VM thread)
 468   virtual void gc_threads_do(ThreadClosure* tc) const = 0;
 469 





 470   // Print any relevant tracing info that flags imply.
 471   // Default implementation does nothing.
 472   virtual void print_tracing_info() const = 0;
 473 
 474   void print_heap_before_gc();
 475   void print_heap_after_gc();
 476 
 477   // Registering and unregistering an nmethod (compiled code) with the heap.
 478   virtual void register_nmethod(nmethod* nm) = 0;
 479   virtual void unregister_nmethod(nmethod* nm) = 0;
 480   // Callback for when nmethod is about to be deleted.
 481   virtual void flush_nmethod(nmethod* nm) = 0;
 482   virtual void verify_nmethod(nmethod* nm) = 0;
 483 
 484   void trace_heap_before_gc(const GCTracer* gc_tracer);
 485   void trace_heap_after_gc(const GCTracer* gc_tracer);
 486 
 487   // Heap verification
 488   virtual void verify(VerifyOption option) = 0;
 489 


< prev index next >