mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8173917: Safepoint ID is not consistent across event-based tracing events
Reviewed-by: egahlin, mgronlun
This commit is contained in:
parent
843dc3a8ea
commit
f4d679fb21
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,8 @@ void SafepointSynchronize::begin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sync_event.should_commit()) {
|
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_initialThreadCount(initial_running);
|
||||||
sync_event.set_runningThreadCount(_waiting_to_block);
|
sync_event.set_runningThreadCount(_waiting_to_block);
|
||||||
sync_event.set_iterations(iterations);
|
sync_event.set_iterations(iterations);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue