| 86 | } |
| 87 | |
| 88 | static bool |
| 89 | tsd_data_init_nocleanup(tsd_t *tsd) { |
| 90 | assert(tsd->state == tsd_state_reincarnated || |
| 91 | tsd->state == tsd_state_minimal_initialized); |
| 92 | /* |
| 93 | * During reincarnation, there is no guarantee that the cleanup function |
| 94 | * will be called (deallocation may happen after all tsd destructors). |
| 95 | * We set up tsd in a way that no cleanup is needed. |
| 96 | */ |
| 97 | rtree_ctx_data_init(tsd_rtree_ctxp_get_unsafe(tsd)); |
| 98 | *tsd_arenas_tdata_bypassp_get(tsd) = true; |
| 99 | *tsd_tcache_enabledp_get_unsafe(tsd) = false; |
| 100 | *tsd_reentrancy_levelp_get(tsd) = 1; |
| 101 | assert_tsd_data_cleanup_done(tsd); |
| 102 | |
| 103 | return false; |
| 104 | } |
| 105 | |
| 106 | tsd_t * |
| 107 | tsd_fetch_slow(tsd_t *tsd, bool minimal) { |
no test coverage detected