Lines Matching defs:heap
132 cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w,
142 me = heap[ndx];
172 heap[heap_left]);
178 heap[heap_right]);
183 cyclic_dump_node(cpu, heap, c, w, heap_left, l, x, depth + 1);
186 cyclic_dump_node(cpu, heap, c, w, heap_right, x, r, depth + 1);
198 cyc_index_t *heap;
201 heap = mdb_alloc(hsize, UM_SLEEP | UM_GC);
203 if (mdb_vread(heap, hsize, (uintptr_t)cpu->cyp_heap) == -1) {
204 mdb_warn("couldn't read heap at %p", (uintptr_t)cpu->cyp_heap);
218 cyclic_dump_node(cpu, heap, c, width, 0, 1, width - 2, 0);
239 * heap (from which these data structures are allocated) starts at
253 cyc_index_t root, i, *heap;
301 heap = mdb_alloc(hsize, UM_SLEEP | UM_GC);
303 if (mdb_vread(heap, hsize, (uintptr_t)cpu.cyp_heap) == -1) {
304 mdb_warn("couldn't read heap at %p", cpu.cyp_heap);
308 root = heap[0];
337 if (heap[j] == i)