src/share/vm/runtime/sweeper.hpp

Print this page
rev 5062 : fix nmethod unregister synchronization

@@ -81,10 +81,11 @@
   static jlong peak_sweep_fraction_time()    { return _peak_sweep_fraction_time; }
   static jlong total_disconnect_time()       { return _total_disconnect_time; }
   static jlong peak_disconnect_time()        { return _peak_disconnect_time; }
 
 #ifdef ASSERT
+  static bool is_sweeping(nmethod* which) { return _current == which; }
   // Keep track of sweeper activity in the ring buffer
   static void record_sweep(nmethod* nm, int line);
   static void report_events(int id, address entry);
   static void report_events();
 #endif