| 110 | } |
| 111 | |
| 112 | void |
| 113 | Region::heap_free(void) { |
| 114 | assert(hi != nullptr); |
| 115 | if (Support::marked(hi)) { |
| 116 | HeapInfo* h = static_cast<HeapInfo*>(Support::unmark(hi)); |
| 117 | for (unsigned int i=0U; i<h->n; i++) |
| 118 | heap.rfree(h->blocks[i]); |
| 119 | heap.rfree(h); |
| 120 | } else { |
| 121 | heap.rfree(hi); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | } |
| 126 |