# HG changeset patch # User stefank # Date 1550751634 -3600 # Node ID 6a84ea153af07da674aff1c8e7261c5d433ef9a7 # Parent a858ad440eb91d715bfae46347f7bb01808cf077 8219573: Add NMethodClosure Reviewed-by: pliden, eosterlund diff -r a858ad440eb9 -r 6a84ea153af0 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;