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

Function init_bins

system/lib/dlmalloc.c:3992–3999  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3990
3991/* Initialize bins for a new mstate that is otherwise zeroed out */
3992static void init_bins(mstate m) {
3993 /* Establish circular links for smallbins */
3994 bindex_t i;
3995 for (i = 0; i < NSMALLBINS; ++i) {
3996 sbinptr bin = smallbin_at(m,i);
3997 bin->fd = bin->bk = bin;
3998 }
3999}
4000
4001#if PROCEED_ON_ERROR
4002

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