• Home
  • Raw
  • Download

Lines Matching refs:fm

4716     mstate fm = get_mstate_for(p);  in dlfree()  local
4717 if (!ok_magic(fm)) { in dlfree()
4718 USAGE_ERROR_ACTION(fm, p); in dlfree()
4722 #define fm gm in dlfree() macro
4724 if (!PREACTION(fm)) { in dlfree()
4725 check_inuse_chunk(fm, p); in dlfree()
4726 if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) { in dlfree()
4734 fm->footprint -= psize; in dlfree()
4741 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in dlfree()
4742 if (p != fm->dv) { in dlfree()
4743 unlink_chunk(fm, p, prevsize); in dlfree()
4746 fm->dvsize = psize; in dlfree()
4758 if (next == fm->top) { in dlfree()
4759 size_t tsize = fm->topsize += psize; in dlfree()
4760 fm->top = p; in dlfree()
4762 if (p == fm->dv) { in dlfree()
4763 fm->dv = 0; in dlfree()
4764 fm->dvsize = 0; in dlfree()
4766 if (should_trim(fm, tsize)) in dlfree()
4767 sys_trim(fm, 0); in dlfree()
4770 else if (next == fm->dv) { in dlfree()
4771 size_t dsize = fm->dvsize += psize; in dlfree()
4772 fm->dv = p; in dlfree()
4779 unlink_chunk(fm, next, nsize); in dlfree()
4781 if (p == fm->dv) { in dlfree()
4782 fm->dvsize = psize; in dlfree()
4791 insert_small_chunk(fm, p, psize); in dlfree()
4792 check_free_chunk(fm, p); in dlfree()
4796 insert_large_chunk(fm, tp, psize); in dlfree()
4797 check_free_chunk(fm, p); in dlfree()
4798 if (--fm->release_checks == 0) in dlfree()
4799 release_unused_segments(fm); in dlfree()
4805 USAGE_ERROR_ACTION(fm, p); in dlfree()
4807 POSTACTION(fm); in dlfree()
4811 #undef fm in dlfree()
5656 mstate fm = get_mstate_for(p); in mspace_free() local
5659 mstate fm = (mstate)msp; in mspace_free() local
5661 if (!ok_magic(fm)) { in mspace_free()
5662 USAGE_ERROR_ACTION(fm, p); in mspace_free()
5665 if (!PREACTION(fm)) { in mspace_free()
5666 check_inuse_chunk(fm, p); in mspace_free()
5667 if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) { in mspace_free()
5675 fm->footprint -= psize; in mspace_free()
5682 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */ in mspace_free()
5683 if (p != fm->dv) { in mspace_free()
5684 unlink_chunk(fm, p, prevsize); in mspace_free()
5687 fm->dvsize = psize; in mspace_free()
5699 if (next == fm->top) { in mspace_free()
5700 size_t tsize = fm->topsize += psize; in mspace_free()
5701 fm->top = p; in mspace_free()
5703 if (p == fm->dv) { in mspace_free()
5704 fm->dv = 0; in mspace_free()
5705 fm->dvsize = 0; in mspace_free()
5707 if (should_trim(fm, tsize)) in mspace_free()
5708 sys_trim(fm, 0); in mspace_free()
5711 else if (next == fm->dv) { in mspace_free()
5712 size_t dsize = fm->dvsize += psize; in mspace_free()
5713 fm->dv = p; in mspace_free()
5720 unlink_chunk(fm, next, nsize); in mspace_free()
5722 if (p == fm->dv) { in mspace_free()
5723 fm->dvsize = psize; in mspace_free()
5732 insert_small_chunk(fm, p, psize); in mspace_free()
5733 check_free_chunk(fm, p); in mspace_free()
5737 insert_large_chunk(fm, tp, psize); in mspace_free()
5738 check_free_chunk(fm, p); in mspace_free()
5739 if (--fm->release_checks == 0) in mspace_free()
5740 release_unused_segments(fm); in mspace_free()
5746 USAGE_ERROR_ACTION(fm, p); in mspace_free()
5748 POSTACTION(fm); in mspace_free()