this function is exposed in malloc_mp.h */
| 278 | |
| 279 | /* this function is exposed in malloc_mp.h */ |
| 280 | void |
| 281 | rollback_expand_heap(struct rte_memseg **ms, int n_segs, |
| 282 | struct malloc_elem *elem, void *map_addr, size_t map_len) |
| 283 | { |
| 284 | if (elem != NULL) { |
| 285 | malloc_elem_free_list_remove(elem); |
| 286 | malloc_elem_hide_region(elem, map_addr, map_len); |
| 287 | } |
| 288 | |
| 289 | eal_memalloc_free_seg_bulk(ms, n_segs); |
| 290 | } |
| 291 | |
| 292 | /* this function is exposed in malloc_mp.h */ |
| 293 | struct malloc_elem * |
no test coverage detected