hotspot/src/share/vm/runtime/sweeper.hpp
changeset 30205 0bff2f15867f
parent 27917 c5937f7b4e8b
child 33160 c59f1676d27e
--- a/hotspot/src/share/vm/runtime/sweeper.hpp	Fri Mar 27 15:08:13 2015 +0000
+++ b/hotspot/src/share/vm/runtime/sweeper.hpp	Mon Mar 30 07:54:23 2015 +0200
@@ -54,7 +54,6 @@
 //     nmethod's space is freed.
 
 class NMethodSweeper : public AllStatic {
-  friend class WhiteBox;
  private:
   enum MethodStateChange {
     None,
@@ -71,6 +70,7 @@
 
   static volatile int  _sweep_started;            // Flag to control conc sweeper
   static volatile bool _should_sweep;             // Indicates if we should invoke the sweeper
+  static volatile bool _force_sweep;              // Indicates if we should force a sweep
   static volatile int _bytes_changed;             // Counts the total nmethod size if the nmethod changed from:
                                                   //   1) alive       -> not_entrant
                                                   //   2) not_entrant -> zombie
@@ -117,6 +117,7 @@
   static void mark_active_nmethods();      // Invoked at the end of each safepoint
   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();
   static void report_state_change(nmethod* nm);