Merge
authoregahlin
Mon, 16 Oct 2017 19:11:17 +0000
changeset 47631 a91c094bcaa4
parent 47629 494e1490b341 (diff)
parent 47630 f312582bf18b (current diff)
child 47633 1c21c60f51bf
Merge
--- a/src/hotspot/share/runtime/safepoint.cpp	Mon Oct 16 17:48:47 2017 +0200
+++ b/src/hotspot/share/runtime/safepoint.cpp	Mon Oct 16 19:11:17 2017 +0000
@@ -333,7 +333,8 @@
     }
 
     if (sync_event.should_commit()) {
-      sync_event.set_safepointId(safepoint_counter());
+      // Group this event together with the ones committed after the counter is increased
+      sync_event.set_safepointId(safepoint_counter() + 1);
       sync_event.set_initialThreadCount(initial_running);
       sync_event.set_runningThreadCount(_waiting_to_block);
       sync_event.set_iterations(iterations);