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

Function reset_on_error

lib/dlmalloc/malloc.c:3918–3931  ·  view source on GitHub ↗

default corruption action */

Source from the content-addressed store, hash-verified

3916
3917/* default corruption action */
3918static void reset_on_error(mstate m) {
3919 int i;
3920 ++malloc_corruption_error_count;
3921 /* Reinitialize fields to forget about all memory */
3922 m->smallmap = m->treemap = 0;
3923 m->dvsize = m->topsize = 0;
3924 m->seg.base = 0;
3925 m->seg.size = 0;
3926 m->seg.next = 0;
3927 m->top = m->dv = 0;
3928 for (i = 0; i < NTREEBINS; ++i)
3929 *treebin_at(m, i) = 0;
3930 init_bins(m);
3931}
3932#endif /* PROCEED_ON_ERROR */
3933
3934/* Allocate chunk and prepend remainder with chunk in successor base. */

Callers

nothing calls this directly

Calls 1

init_binsFunction · 0.85

Tested by

no test coverage detected