Check properties of inuse chunks */
| 2634 | |
| 2635 | /* Check properties of inuse chunks */ |
| 2636 | static void do_check_inuse_chunk(mstate m, mchunkptr p) { |
| 2637 | do_check_any_chunk(m, p); |
| 2638 | assert(cinuse(p)); |
| 2639 | assert(next_pinuse(p)); |
| 2640 | /* If not pinuse and not mmapped, previous chunk has OK offset */ |
| 2641 | assert(is_mmapped(p) || pinuse(p) || next_chunk(prev_chunk(p)) == p); |
| 2642 | if (is_mmapped(p)) |
| 2643 | do_check_mmapped_chunk(m, p); |
| 2644 | } |
| 2645 | |
| 2646 | /* Check properties of free chunks */ |
| 2647 | static void do_check_free_chunk(mstate m, mchunkptr p) { |
no test coverage detected