hotspot/src/share/vm/runtime/sweeper.cpp
changeset 22859 7b88983393b7
parent 21767 41eaa9a17059
child 22872 b6902ee5bc8d
equal deleted inserted replaced
22858:f4a6f0eba875 22859:7b88983393b7
   297       // can further increase by calls to 'report_state_change'.
   297       // can further increase by calls to 'report_state_change'.
   298       if (_should_sweep) {
   298       if (_should_sweep) {
   299         _bytes_changed = 0;
   299         _bytes_changed = 0;
   300       }
   300       }
   301     }
   301     }
   302     _sweep_started = 0;
   302     // Release work, because another compiler thread could continue.
       
   303     OrderAccess::release_store((int*)&_sweep_started, 0);
   303   }
   304   }
   304 }
   305 }
   305 
   306 
   306 void NMethodSweeper::sweep_code_cache() {
   307 void NMethodSweeper::sweep_code_cache() {
   307   Ticks sweep_start_counter = Ticks::now();
   308   Ticks sweep_start_counter = Ticks::now();