Skip to content

Commit 69ed94c

Browse files
committed
minor gc: more consistent memprof logging
In ocaml#13580 (comment) jmid reports that he needed to tweak the GC verbosity setting to avoid getting spammed by minor-gc messages when debugging an assertion failure. The other sub-phases of the GC minor all uses `caml_gc_log` rather than CAML_GC_MESSAGE, and do not seem to cause similar spamming issues. Fixing the code to be consistent will avoid inconsistent verbosity levels in end-user scripts.
1 parent 5e89966 commit 69ed94c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/minor_gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ caml_stw_empty_minor_heap_no_major_slice(caml_domain_state* domain,
867867
}
868868

869869
CAML_EV_BEGIN(EV_MINOR_MEMPROF_CLEAN);
870-
CAML_GC_MESSAGE(MINOR, "Updating memprof.\n");
870+
caml_gc_log("updating memprof");
871871
caml_memprof_after_minor_gc(domain);
872872
CAML_EV_END(EV_MINOR_MEMPROF_CLEAN);
873873

0 commit comments

Comments
 (0)