Check properties of inuse chunks */
| 3246 | |
| 3247 | /* Check properties of inuse chunks */ |
| 3248 | static void do_check_inuse_chunk(mstate m, mchunkptr p) { |
| 3249 | do_check_any_chunk(m, p); |
| 3250 | assert(is_inuse(p)); |
| 3251 | assert(next_pinuse(p)); |
| 3252 | /* If not pinuse and not mmapped, previous chunk has OK offset */ |
| 3253 | assert(is_mmapped(p) || pinuse(p) || next_chunk(prev_chunk(p)) == p); |
| 3254 | if (is_mmapped(p)) |
| 3255 | do_check_mmapped_chunk(m, p); |
| 3256 | } |
| 3257 | |
| 3258 | /* Check properties of free chunks */ |
| 3259 | static void do_check_free_chunk(mstate m, mchunkptr p) { |
no test coverage detected