src/hotspot/share/gc/shared/collectedHeap.hpp
changeset 54361 879051d3772a
parent 54122 4b1426ed1c44
child 54375 a5ce9300462f
equal deleted inserted replaced
54360:6a4abdb6749c 54361:879051d3772a
   508 
   508 
   509   void print_heap_before_gc();
   509   void print_heap_before_gc();
   510   void print_heap_after_gc();
   510   void print_heap_after_gc();
   511 
   511 
   512   // Registering and unregistering an nmethod (compiled code) with the heap.
   512   // Registering and unregistering an nmethod (compiled code) with the heap.
   513   // Override with specific mechanism for each specialized heap type.
   513   virtual void register_nmethod(nmethod* nm) = 0;
   514   virtual void register_nmethod(nmethod* nm) {}
   514   virtual void unregister_nmethod(nmethod* nm) = 0;
   515   virtual void unregister_nmethod(nmethod* nm) {}
   515   // Callback for when nmethod is about to be deleted.
   516   virtual void flush_nmethod(nmethod* nm) {}
   516   virtual void flush_nmethod(nmethod* nm) = 0;
   517   virtual void verify_nmethod(nmethod* nmethod) {}
   517   virtual void verify_nmethod(nmethod* nm) = 0;
   518 
   518 
   519   void trace_heap_before_gc(const GCTracer* gc_tracer);
   519   void trace_heap_before_gc(const GCTracer* gc_tracer);
   520   void trace_heap_after_gc(const GCTracer* gc_tracer);
   520   void trace_heap_after_gc(const GCTracer* gc_tracer);
   521 
   521 
   522   // Heap verification
   522   // Heap verification