| 1177 | } |
| 1178 | |
| 1179 | static void * |
| 1180 | extent_alloc_default(extent_hooks_t *extent_hooks, void *new_addr, size_t size, |
| 1181 | size_t alignment, bool *zero, bool *commit, unsigned arena_ind) { |
| 1182 | tsdn_t *tsdn; |
| 1183 | arena_t *arena; |
| 1184 | |
| 1185 | tsdn = tsdn_fetch(); |
| 1186 | arena = arena_get(tsdn, arena_ind, false); |
| 1187 | /* |
| 1188 | * The arena we're allocating on behalf of must have been initialized |
| 1189 | * already. |
| 1190 | */ |
| 1191 | assert(arena != NULL); |
| 1192 | |
| 1193 | return extent_alloc_default_impl(tsdn, arena, new_addr, size, |
| 1194 | alignment, zero, commit); |
| 1195 | } |
| 1196 | |
| 1197 | static void |
| 1198 | extent_hook_pre_reentrancy(tsdn_t *tsdn, arena_t *arena) { |
nothing calls this directly
no test coverage detected