heap.h (513B)
1 #ifndef KIT_HEAP_H 2 #define KIT_HEAP_H 3 4 #include "core/core.h" 5 6 /* KitHeap struct definition is in <kit.h> (public). The host 7 * implements `alloc`/`realloc`/`free` and passes the heap in via 8 * KitEnv.heap. 9 * 10 * heap_mmap_exec is a libkit-internal helper used only by the JIT path 11 * (mapped pages with PROT_EXEC available on flip). It is the one place 12 * inside libkit that genuinely depends on host memory mapping; for now 13 * it stays internal until the JIT is wired up. */ 14 Heap* heap_mmap_exec(void); 15 16 #endif