MCPcopy Index your code
hub / github.com/dcodeIO/webassembly / init_bins

Function init_bins

lib/dlmalloc/malloc.c:3906–3913  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3904
3905/* Initialize bins for a new mstate that is otherwise zeroed out */
3906static void init_bins(mstate m) {
3907 /* Establish circular links for smallbins */
3908 bindex_t i;
3909 for (i = 0; i < NSMALLBINS; ++i) {
3910 sbinptr bin = smallbin_at(m,i);
3911 bin->fd = bin->bk = bin;
3912 }
3913}
3914
3915#if PROCEED_ON_ERROR
3916

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