Make tsd no-cleanup during tsd reincarnation.
Since tsd cleanup isn't guaranteed when reincarnated, we set up tsd in a way that needs no cleanup, by making it going through slow path instead.
This commit is contained in:
@@ -106,8 +106,8 @@ thd_start_reincarnated(void *arg) {
|
||||
"TSD state should be reincarnated\n");
|
||||
p = mallocx(1, MALLOCX_TCACHE_NONE);
|
||||
assert_ptr_not_null(p, "Unexpected malloc() failure");
|
||||
assert_ptr_not_null(*tsd_arenap_get_unsafe(tsd),
|
||||
"Should have tsd arena set after reincarnation.");
|
||||
assert_ptr_null(*tsd_arenap_get_unsafe(tsd),
|
||||
"Should not have tsd arena set after reincarnation.");
|
||||
|
||||
free(p);
|
||||
tsd_cleanup((void *)tsd);
|
||||
|
Reference in New Issue
Block a user