hotspot/src/share/vm/runtime/sweeper.cpp
changeset 28163 322d55d167be
parent 27917 c5937f7b4e8b
child 29339 f0b1b7788a51
equal deleted inserted replaced
28023:a4075664328d 28163:322d55d167be
   156 Tickspan NMethodSweeper::_total_time_sweeping;                 // Accumulated time sweeping
   156 Tickspan NMethodSweeper::_total_time_sweeping;                 // Accumulated time sweeping
   157 Tickspan NMethodSweeper::_total_time_this_sweep;               // Total time this sweep
   157 Tickspan NMethodSweeper::_total_time_this_sweep;               // Total time this sweep
   158 Tickspan NMethodSweeper::_peak_sweep_time;                     // Peak time for a full sweep
   158 Tickspan NMethodSweeper::_peak_sweep_time;                     // Peak time for a full sweep
   159 Tickspan NMethodSweeper::_peak_sweep_fraction_time;            // Peak time sweeping one fraction
   159 Tickspan NMethodSweeper::_peak_sweep_fraction_time;            // Peak time sweeping one fraction
   160 
   160 
   161 Monitor* NMethodSweeper::_stat_lock = new Monitor(Mutex::special, "Sweeper::Statistics", true);
   161 Monitor* NMethodSweeper::_stat_lock = new Monitor(Mutex::special, "Sweeper::Statistics", true, Monitor::_safepoint_check_sometimes);
   162 
   162 
   163 class MarkActivationClosure: public CodeBlobClosure {
   163 class MarkActivationClosure: public CodeBlobClosure {
   164 public:
   164 public:
   165   virtual void do_code_blob(CodeBlob* cb) {
   165   virtual void do_code_blob(CodeBlob* cb) {
   166     assert(cb->is_nmethod(), "CodeBlob should be nmethod");
   166     assert(cb->is_nmethod(), "CodeBlob should be nmethod");