src/hotspot/share/runtime/safepoint.cpp
changeset 47629 494e1490b341
parent 47216 71c04702a3d5
child 47636 52d46d7e3454
equal deleted inserted replaced
47628:ba91aaeec3a9 47629:494e1490b341
   331     if (PrintSafepointStatistics) {
   331     if (PrintSafepointStatistics) {
   332       update_statistics_on_spin_end();
   332       update_statistics_on_spin_end();
   333     }
   333     }
   334 
   334 
   335     if (sync_event.should_commit()) {
   335     if (sync_event.should_commit()) {
   336       sync_event.set_safepointId(safepoint_counter());
   336       // Group this event together with the ones committed after the counter is increased
       
   337       sync_event.set_safepointId(safepoint_counter() + 1);
   337       sync_event.set_initialThreadCount(initial_running);
   338       sync_event.set_initialThreadCount(initial_running);
   338       sync_event.set_runningThreadCount(_waiting_to_block);
   339       sync_event.set_runningThreadCount(_waiting_to_block);
   339       sync_event.set_iterations(iterations);
   340       sync_event.set_iterations(iterations);
   340       sync_event.commit();
   341       sync_event.commit();
   341     }
   342     }