< prev index next >

src/share/vm/runtime/sweeper.hpp

Print this page
rev 13146 : 8180932: Parallelize safepoint cleanup
Summary: Provide infrastructure to do safepoint cleanup tasks using parallel worker threads
Reviewed-by: dholmes, rehn

@@ -28,10 +28,12 @@
 class WhiteBox;
 
 #include "code/codeCache.hpp"
 #include "utilities/ticks.hpp"
 
+class CodeBlobClosure;
+
 // An NmethodSweeper is an incremental cleaner for:
 //    - cleanup inline caches
 //    - reclamation of nmethods
 // Removing nmethods from the code cache includes two operations
 //  1) mark active nmethods

@@ -112,10 +114,11 @@
   static void report_events(int id, address entry);
   static void report_events();
 #endif
 
   static void mark_active_nmethods();      // Invoked at the end of each safepoint
+  static CodeBlobClosure* prepare_mark_active_nmethods();
   static void sweeper_loop();
   static void notify(int code_blob_type);  // Possibly start the sweeper thread.
   static void force_sweep();
 
   static int hotness_counter_reset_val();
< prev index next >