changeset 54378:6a84ea153af0

8219573: Add NMethodClosure Reviewed-by: pliden, eosterlund
author stefank
date Thu, 21 Feb 2019 13:20:34 +0100
parents a858ad440eb9
children 70a6a7b15d36
files src/hotspot/share/memory/iterator.hpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;