git/trace2
Derrick Stolee a80c36bda0 trace2: remove use of xcalloc()
Remove use of xcalloc() from the trace2 API due to its possible use of
die(), which could lead to recursive die() handlers. This is used in the
trace2 API to track an array of thread contexts when logging multi-
threaded operations.

Instead of killing the process on a failure, we attempt to proceed as
much as possible. We replace the dynamic thread context with a
statically-allocated context that uses the "unknown" thread name to
identify that we are in an error case.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-31 11:08:41 -07:00
..
tr2_cfg.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_cfg.h
tr2_cmd_name.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_cmd_name.h
tr2_ctr.c trace2: remove use of xcalloc() 2026-08-31 11:08:41 -07:00
tr2_ctr.h
tr2_dst.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_dst.h
tr2_sid.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_sid.h
tr2_sysenv.c trace2: remove use of xstrdup() 2026-08-31 11:08:41 -07:00
tr2_sysenv.h
tr2_tbuf.c trace2: tolerate failed timestamp formatting 2026-08-31 11:08:41 -07:00
tr2_tbuf.h
tr2_tgt.h
tr2_tgt_event.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_tgt_normal.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_tgt_perf.c banned-die: create header for banning of functions 2026-08-31 11:08:41 -07:00
tr2_tls.c trace2: remove use of xcalloc() 2026-08-31 11:08:41 -07:00
tr2_tls.h trace2: remove use of xcalloc() 2026-08-31 11:08:41 -07:00
tr2_tmr.c trace2: remove use of xcalloc() 2026-08-31 11:08:41 -07:00
tr2_tmr.h