No tdata creation for backtracing on dying thread

This commit is contained in:
Yinan Zhang 2020-01-14 11:23:32 -08:00
parent dab81bd315
commit b8df719d5c

View File

@ -406,7 +406,7 @@ prof_lookup(tsd_t *tsd, prof_bt_t *bt) {
prof_tctx_t * prof_tctx_t *
prof_tctx_create(tsd_t *tsd) { prof_tctx_create(tsd_t *tsd) {
if (tsd_reentrancy_level_get(tsd) > 0) { if (!tsd_nominal(tsd) || tsd_reentrancy_level_get(tsd) > 0) {
return NULL; return NULL;
} }