MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_arena_commit

Function mi_arena_commit

system/lib/mimalloc/src/arena.c:110–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110mi_decl_nodiscard static bool mi_arena_commit(mi_arena_t* arena, void* start, size_t size, bool* is_zero, size_t already_committed) {
111 if (arena != NULL && arena->commit_fun != NULL) {
112 return (*arena->commit_fun)(true, start, size, is_zero, arena->commit_fun_arg);
113 }
114 else if (already_committed > 0) {
115 return _mi_os_commit_ex(start, size, is_zero, already_committed);
116 }
117 else {
118 return _mi_os_commit(start, size, is_zero);
119 }
120}
121
122
123

Callers 2

mi_arena_try_alloc_atFunction · 0.85

Calls 2

_mi_os_commit_exFunction · 0.85
_mi_os_commitFunction · 0.85

Tested by

no test coverage detected