Skip to content

Commit

Permalink
Adjust restart world logging level to match start major/nursery loggi…
Browse files Browse the repository at this point in the history
…ng. (mono/mono#17520)

With this change we will get the following logging on level 1:

2019-10-22 15:46:59 Start nursery collection 38898 00000205A0000000-00000205A1000000, size: 16777216
2019-10-22 15:46:59 restarted (pause time: 2728 usec, max: 689233 usec)

showing the pause time and when runtime was restared, before this fix
we will only see the start log message on level 1.

Commit migrated from mono/mono@fe7654f
  • Loading branch information
lateralusX authored and vargaz committed Oct 24, 2019
1 parent b6aa9e1 commit 07288e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/metadata/sgen-stw.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ sgen_client_restart_world (int generation, gboolean serial_collection, gint64 *s
max_stw_pause_time = MAX (stw_pause_time, max_stw_pause_time);
end_of_last_stw = end_sw;

SGEN_LOG (2, "restarted (pause time: %d usec, max: %d usec)", (int)stw_pause_time / 10, (int)max_stw_pause_time / 10);
SGEN_LOG (1, "restarted (pause time: %d usec, max: %d usec)", (int)stw_pause_time / 10, (int)max_stw_pause_time / 10);

MONO_PROFILER_RAISE (gc_event, (MONO_GC_EVENT_POST_START_WORLD, generation, serial_collection));

Expand Down

0 comments on commit 07288e4

Please sign in to comment.