| 879 | } |
| 880 | |
| 881 | static bool |
| 882 | prof_tctx_should_destroy(tsdn_t *tsdn, prof_tctx_t *tctx) { |
| 883 | malloc_mutex_assert_owner(tsdn, tctx->tdata->lock); |
| 884 | |
| 885 | if (opt_prof_accum) { |
| 886 | return false; |
| 887 | } |
| 888 | if (tctx->cnts.curobjs != 0) { |
| 889 | return false; |
| 890 | } |
| 891 | if (tctx->prepared) { |
| 892 | return false; |
| 893 | } |
| 894 | return true; |
| 895 | } |
| 896 | |
| 897 | static bool |
| 898 | prof_gctx_should_destroy(prof_gctx_t *gctx) { |
no test coverage detected