--- old/src/share/vm/gc_interface/collectedHeap.hpp 2013-06-26 14:23:35.505918829 -0700 +++ new/src/share/vm/gc_interface/collectedHeap.hpp 2013-06-26 14:23:35.288144792 -0700 @@ -43,6 +43,7 @@ class AdaptiveSizePolicy; class Thread; class CollectorPolicy; +class nmethod; class GCMessage : public FormatBuffer<1024> { public: @@ -607,6 +608,11 @@ } } + // 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;