mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
TSD: Add a tsd_nominal_list death assertion.
A thread should have had its state transition away from nominal before it dies. This change adds that to the list of thread death assertions.
This commit is contained in:
parent
3aba072cef
commit
013ab26c86
1 changed files with 1 additions and 0 deletions
|
|
@ -238,6 +238,7 @@ tsd_data_init(tsd_t *tsd) {
|
|||
static void
|
||||
assert_tsd_data_cleanup_done(tsd_t *tsd) {
|
||||
assert(!tsd_nominal(tsd));
|
||||
assert(!tsd_in_nominal_list(tsd));
|
||||
assert(*tsd_arenap_get_unsafe(tsd) == NULL);
|
||||
assert(*tsd_iarenap_get_unsafe(tsd) == NULL);
|
||||
assert(*tsd_arenas_tdata_bypassp_get_unsafe(tsd) == true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue