MCPcopy Create free account
hub / github.com/F-Stack/f-stack / extent_alloc_default

Function extent_alloc_default

app/redis-6.2.6/deps/jemalloc/src/extent.c:1179–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177}
1178
1179static void *
1180extent_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
1197static void
1198extent_hook_pre_reentrancy(tsdn_t *tsdn, arena_t *arena) {

Callers

nothing calls this directly

Calls 3

tsdn_fetchFunction · 0.85
arena_getFunction · 0.85

Tested by

no test coverage detected