src/share/vm/gc_interface/collectedHeap.hpp

Print this page
rev 4802 : imported patch optimize-nmethod-scanning

@@ -41,10 +41,11 @@
 class BarrierSet;
 class ThreadClosure;
 class AdaptiveSizePolicy;
 class Thread;
 class CollectorPolicy;
+class nmethod;
 
 class GCMessage : public FormatBuffer<1024> {
  public:
   bool is_before;
 

@@ -605,10 +606,15 @@
     if (_gc_heap_log != NULL) {
       _gc_heap_log->log_heap_after();
     }
   }
 
+  // Registering and unregistering an nmethod (compiled code) with the heap.
+  // Override with specific mechanism for each specialized heap type
+  virtual void register_nmethod(nmethod* nm) {}
+  virtual void unregister_nmethod(nmethod* nm) {}
+
   // Heap verification
   virtual void verify(bool silent, VerifyOption option) = 0;
 
   // Non product verification and debugging.
 #ifndef PRODUCT