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> |
||
|---|---|---|
| .. | ||
| tr2_cfg.c | ||
| tr2_cfg.h | ||
| tr2_cmd_name.c | ||
| tr2_cmd_name.h | ||
| tr2_ctr.c | ||
| tr2_ctr.h | ||
| tr2_dst.c | ||
| tr2_dst.h | ||
| tr2_sid.c | ||
| tr2_sid.h | ||
| tr2_sysenv.c | ||
| tr2_sysenv.h | ||
| tr2_tbuf.c | ||
| tr2_tbuf.h | ||
| tr2_tgt.h | ||
| tr2_tgt_event.c | ||
| tr2_tgt_normal.c | ||
| tr2_tgt_perf.c | ||
| tr2_tls.c | ||
| tr2_tls.h | ||
| tr2_tmr.c | ||
| tr2_tmr.h | ||