8219573: Add NMethodClosure
authorstefank
Thu, 21 Feb 2019 13:20:34 +0100
changeset 53889 6a84ea153af0
parent 53888 a858ad440eb9
child 53890 70a6a7b15d36
8219573: Add NMethodClosure Reviewed-by: pliden, eosterlund
src/hotspot/share/memory/iterator.hpp
--- a/src/hotspot/share/memory/iterator.hpp	Wed Feb 20 10:46:39 2019 +0100
+++ b/src/hotspot/share/memory/iterator.hpp	Thu Feb 21 13:20:34 2019 +0100
@@ -263,6 +263,11 @@
   virtual void do_code_blob(CodeBlob* cb);
 };
 
+class NMethodClosure : public Closure {
+ public:
+  virtual void do_nmethod(nmethod* n) = 0;
+};
+
 // MonitorClosure is used for iterating over monitors in the monitors cache
 
 class ObjectMonitor;