MCPcopy Create free account
hub / github.com/Gecode/gecode / heap_free

Method heap_free

gecode/kernel/memory/region.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

markedFunction · 0.85
unmarkFunction · 0.85
rfreeMethod · 0.45

Tested by

no test coverage detected