Lines Matching refs:fm
4270 mstate fm = get_mstate_for(p); in dlfree() local
4271 if (!ok_magic(fm)) { in dlfree()
4272 USAGE_ERROR_ACTION(fm, p); in dlfree()
4276 #define fm gm in dlfree() macro
4278 if (!PREACTION(fm)) { in dlfree()
4279 check_inuse_chunk(fm, p); in dlfree()
4280 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) { in dlfree()
4289 fm->footprint -= psize; in dlfree()
4296 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in dlfree()
4297 if (p != fm->dv) { in dlfree()
4298 unlink_chunk(fm, p, prevsize); in dlfree()
4301 fm->dvsize = psize; in dlfree()
4313 if (next == fm->top) { in dlfree()
4314 size_t tsize = fm->topsize += psize; in dlfree()
4315 fm->top = p; in dlfree()
4317 if (p == fm->dv) { in dlfree()
4318 fm->dv = 0; in dlfree()
4319 fm->dvsize = 0; in dlfree()
4321 if (should_trim(fm, tsize)) in dlfree()
4322 sys_trim(fm, 0); in dlfree()
4325 else if (next == fm->dv) { in dlfree()
4326 size_t dsize = fm->dvsize += psize; in dlfree()
4327 fm->dv = p; in dlfree()
4334 unlink_chunk(fm, next, nsize); in dlfree()
4336 if (p == fm->dv) { in dlfree()
4337 fm->dvsize = psize; in dlfree()
4344 insert_chunk(fm, p, psize); in dlfree()
4345 check_free_chunk(fm, p); in dlfree()
4350 USAGE_ERROR_ACTION(fm, p); in dlfree()
4352 POSTACTION(fm); in dlfree()
4356 #undef fm in dlfree()
4671 mstate fm = get_mstate_for(p); in mspace_free() local
4673 mstate fm = (mstate)msp; in mspace_free() local
4675 if (!ok_magic(fm)) { in mspace_free()
4676 USAGE_ERROR_ACTION(fm, p); in mspace_free()
4679 if (!PREACTION(fm)) { in mspace_free()
4680 check_inuse_chunk(fm, p); in mspace_free()
4681 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) { in mspace_free()
4690 fm->footprint -= psize; in mspace_free()
4697 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in mspace_free()
4698 if (p != fm->dv) { in mspace_free()
4699 unlink_chunk(fm, p, prevsize); in mspace_free()
4702 fm->dvsize = psize; in mspace_free()
4714 if (next == fm->top) { in mspace_free()
4715 size_t tsize = fm->topsize += psize; in mspace_free()
4716 fm->top = p; in mspace_free()
4718 if (p == fm->dv) { in mspace_free()
4719 fm->dv = 0; in mspace_free()
4720 fm->dvsize = 0; in mspace_free()
4722 if (should_trim(fm, tsize)) in mspace_free()
4723 sys_trim(fm, 0); in mspace_free()
4726 else if (next == fm->dv) { in mspace_free()
4727 size_t dsize = fm->dvsize += psize; in mspace_free()
4728 fm->dv = p; in mspace_free()
4735 unlink_chunk(fm, next, nsize); in mspace_free()
4737 if (p == fm->dv) { in mspace_free()
4738 fm->dvsize = psize; in mspace_free()
4745 insert_chunk(fm, p, psize); in mspace_free()
4746 check_free_chunk(fm, p); in mspace_free()
4751 USAGE_ERROR_ACTION(fm, p); in mspace_free()
4753 POSTACTION(fm); in mspace_free()