Lines Matching refs:fm
4213 mstate fm = get_mstate_for(p); in dlfree() local
4214 if (!ok_magic(fm)) { in dlfree()
4215 USAGE_ERROR_ACTION(fm, p); in dlfree()
4219 #define fm gm in dlfree() macro
4221 if (!PREACTION(fm)) { in dlfree()
4222 check_inuse_chunk(fm, p); in dlfree()
4223 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) { in dlfree()
4232 fm->footprint -= psize; in dlfree()
4239 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in dlfree()
4240 if (p != fm->dv) { in dlfree()
4241 unlink_chunk(fm, p, prevsize); in dlfree()
4244 fm->dvsize = psize; in dlfree()
4256 if (next == fm->top) { in dlfree()
4257 size_t tsize = fm->topsize += psize; in dlfree()
4258 fm->top = p; in dlfree()
4260 if (p == fm->dv) { in dlfree()
4261 fm->dv = 0; in dlfree()
4262 fm->dvsize = 0; in dlfree()
4264 if (should_trim(fm, tsize)) in dlfree()
4265 sys_trim(fm, 0); in dlfree()
4268 else if (next == fm->dv) { in dlfree()
4269 size_t dsize = fm->dvsize += psize; in dlfree()
4270 fm->dv = p; in dlfree()
4277 unlink_chunk(fm, next, nsize); in dlfree()
4279 if (p == fm->dv) { in dlfree()
4280 fm->dvsize = psize; in dlfree()
4287 insert_chunk(fm, p, psize); in dlfree()
4288 check_free_chunk(fm, p); in dlfree()
4293 USAGE_ERROR_ACTION(fm, p); in dlfree()
4295 POSTACTION(fm); in dlfree()
4299 #undef fm in dlfree()
4614 mstate fm = get_mstate_for(p); in mspace_free() local
4616 mstate fm = (mstate)msp; in mspace_free() local
4618 if (!ok_magic(fm)) { in mspace_free()
4619 USAGE_ERROR_ACTION(fm, p); in mspace_free()
4622 if (!PREACTION(fm)) { in mspace_free()
4623 check_inuse_chunk(fm, p); in mspace_free()
4624 if (RTCHECK(ok_address(fm, p) && ok_cinuse(p))) { in mspace_free()
4633 fm->footprint -= psize; in mspace_free()
4640 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in mspace_free()
4641 if (p != fm->dv) { in mspace_free()
4642 unlink_chunk(fm, p, prevsize); in mspace_free()
4645 fm->dvsize = psize; in mspace_free()
4657 if (next == fm->top) { in mspace_free()
4658 size_t tsize = fm->topsize += psize; in mspace_free()
4659 fm->top = p; in mspace_free()
4661 if (p == fm->dv) { in mspace_free()
4662 fm->dv = 0; in mspace_free()
4663 fm->dvsize = 0; in mspace_free()
4665 if (should_trim(fm, tsize)) in mspace_free()
4666 sys_trim(fm, 0); in mspace_free()
4669 else if (next == fm->dv) { in mspace_free()
4670 size_t dsize = fm->dvsize += psize; in mspace_free()
4671 fm->dv = p; in mspace_free()
4678 unlink_chunk(fm, next, nsize); in mspace_free()
4680 if (p == fm->dv) { in mspace_free()
4681 fm->dvsize = psize; in mspace_free()
4688 insert_chunk(fm, p, psize); in mspace_free()
4689 check_free_chunk(fm, p); in mspace_free()
4694 USAGE_ERROR_ACTION(fm, p); in mspace_free()
4696 POSTACTION(fm); in mspace_free()