| 1248 | } |
| 1249 | |
| 1250 | static void * |
| 1251 | extent_alloc_default(extent_hooks_t *extent_hooks, void *new_addr, size_t size, |
| 1252 | size_t alignment, bool *zero, bool *commit, unsigned arena_ind) { |
| 1253 | tsdn_t *tsdn; |
| 1254 | arena_t *arena; |
| 1255 | |
| 1256 | tsdn = tsdn_fetch(); |
| 1257 | arena = arena_get(tsdn, arena_ind, false); |
| 1258 | /* |
| 1259 | * The arena we're allocating on behalf of must have been initialized |
| 1260 | * already. |
| 1261 | */ |
| 1262 | assert(arena != NULL); |
| 1263 | |
| 1264 | return extent_alloc_default_impl(tsdn, arena, new_addr, size, |
| 1265 | ALIGNMENT_CEILING(alignment, PAGE), zero, commit); |
| 1266 | } |
| 1267 | |
| 1268 | static void |
| 1269 | extent_hook_pre_reentrancy(tsdn_t *tsdn, arena_t *arena) { |
nothing calls this directly
no test coverage detected