Home | History | Annotate | Download | only in mpreal

Lines Matching defs:fm

4739     mstate fm = get_mstate_for(p);

4740 if (!ok_magic(fm)) {
4741 USAGE_ERROR_ACTION(fm, p);
4745 #define fm gm
4747 if (!PREACTION(fm)) {
4748 check_inuse_chunk(fm, p);
4749 if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) {
4757 fm->footprint -= psize;
4764 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
4765 if (p != fm->dv) {
4766 unlink_chunk(fm, p, prevsize);
4769 fm->dvsize = psize;
4781 if (next == fm->top) {
4782 size_t tsize = fm->topsize += psize;
4783 fm->top = p;
4785 if (p == fm->dv) {
4786 fm->dv = 0;
4787 fm->dvsize = 0;
4789 if (should_trim(fm, tsize))
4790 sys_trim(fm, 0);
4793 else if (next == fm->dv) {
4794 size_t dsize = fm->dvsize += psize;
4795 fm->dv = p;
4802 unlink_chunk(fm, next, nsize);
4804 if (p == fm->dv) {
4805 fm->dvsize = psize;
4814 insert_small_chunk(fm, p, psize);
4815 check_free_chunk(fm, p);
4819 insert_large_chunk(fm, tp, psize);
4820 check_free_chunk(fm, p);
4821 if (--fm->release_checks == 0)
4822 release_unused_segments(fm);
4828 USAGE_ERROR_ACTION(fm, p);
4830 POSTACTION(fm);
4834 #undef fm
5168 mstate fm = get_mstate_for(p);
5171 mstate fm = (mstate)msp;
5173 if (!ok_magic(fm)) {
5174 USAGE_ERROR_ACTION(fm, p);
5177 if (!PREACTION(fm)) {
5178 check_inuse_chunk(fm, p);
5179 if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) {
5187 fm->footprint -= psize;
5194 if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
5195 if (p != fm->dv) {
5196 unlink_chunk(fm, p, prevsize);
5199 fm->dvsize = psize;
5211 if (next == fm->top) {
5212 size_t tsize = fm->topsize += psize;
5213 fm->top = p;
5215 if (p == fm->dv) {
5216 fm->dv = 0;
5217 fm->dvsize = 0;
5219 if (should_trim(fm, tsize))
5220 sys_trim(fm, 0);
5223 else if (next == fm->dv) {
5224 size_t dsize = fm->dvsize += psize;
5225 fm->dv = p;
5232 unlink_chunk(fm, next, nsize);
5234 if (p == fm->dv) {
5235 fm->dvsize = psize;
5244 insert_small_chunk(fm, p, psize);
5245 check_free_chunk(fm, p);
5249 insert_large_chunk(fm, tp, psize);
5250 check_free_chunk(fm, p);
5251 if (--fm->release_checks == 0)
5252 release_unused_segments(fm);
5258 USAGE_ERROR_ACTION(fm, p);
5260 POSTACTION(fm);