< prev index next >

src/hotspot/share/gc/z/zNMethodTable.hpp

Print this page

        

@@ -30,13 +30,13 @@
 #include "gc/z/zNMethodTableEntry.hpp"
 #include "memory/allocation.hpp"
 
 class ZWorkers;
 
-class ZNMethodTableEntryClosure {
+class ZNMethodClosure {
 public:
-  virtual void do_nmethod_entry(ZNMethodTableEntry entry) = 0;
+  virtual void do_nmethod(nmethod* nm) = 0;
 };
 
 class ZNMethodTable : public AllStatic {
 private:
   static ZNMethodTableEntry* _table;

@@ -46,24 +46,25 @@
   static ZArray<void*>       _iter_deferred_deletes;
   static size_t              _nregistered;
   static size_t              _nunregistered;
   static volatile size_t     _claimed ATTRIBUTE_ALIGNED(ZCacheLineSize);
 
-  static ZNMethodTableEntry create_entry(nmethod* nm);
+  static void attach_gc_data(nmethod* nm);
+  static void detach_gc_data(nmethod* nm);
 
   static size_t first_index(const nmethod* nm, size_t size);
   static size_t next_index(size_t prev_index, size_t size);
 
   static void wait_until_iteration_done();
 
-  static bool register_entry(ZNMethodTableEntry* table, size_t size, ZNMethodTableEntry entry);
+  static bool register_entry(ZNMethodTableEntry* table, size_t size, nmethod* nm);
   static void unregister_entry(ZNMethodTableEntry* table, size_t size, nmethod* nm);
 
   static void rebuild(size_t new_size);
   static void rebuild_if_needed();
 
-  static void log_register(const nmethod* nm, ZNMethodTableEntry entry);
+  static void log_register(const nmethod* nm);
   static void log_unregister(const nmethod* nm);
 
 public:
   static void safe_delete(void* data);
 

@@ -76,15 +77,15 @@
 
   static ZReentrantLock* lock_for_nmethod(nmethod* nm);
 
   static void oops_do(OopClosure* cl);
 
-  static void entry_oops_do(ZNMethodTableEntry entry, OopClosure* cl);
+  static void oops_do(nmethod* nm, OopClosure* cl);
 
-  static void nmethod_entries_do_begin();
-  static void nmethod_entries_do_end();
-  static void nmethod_entries_do(ZNMethodTableEntryClosure* cl);
+  static void nmethods_do_begin();
+  static void nmethods_do_end();
+  static void nmethods_do(ZNMethodClosure* cl);
 
   static void unlink(ZWorkers* workers, bool unloading_occurred);
   static void purge(ZWorkers* workers);
 };
 
< prev index next >