MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / init_bins

Function init_bins

dlmalloc/dlmalloc.c:3286–3293  ·  view source on GitHub ↗

Initialize bins for a new mstate that is otherwise zeroed out */

Source from the content-addressed store, hash-verified

3284
3285/* Initialize bins for a new mstate that is otherwise zeroed out */
3286static void init_bins(mstate m) {
3287 /* Establish circular links for smallbins */
3288 bindex_t i;
3289 for (i = 0; i < NSMALLBINS; ++i) {
3290 sbinptr bin = smallbin_at(m,i);
3291 bin->fd = bin->bk = bin;
3292 }
3293}
3294
3295#if PROCEED_ON_ERROR
3296

Callers 3

reset_on_errorFunction · 0.85
sys_allocFunction · 0.85
init_user_mstateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected