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:
David Goldblatt 2018-07-26 14:17:36 -07:00 committed by David Goldblatt
parent 3aba072cef
commit 013ab26c86

View File

@ -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);