• Marius Wachtler's avatar
    runtime ICs: use mmap instead of malloc for executable code · 5cae67fb
    Marius Wachtler authored
    we should not execute memory which got allocated using malloc
    (crashes a lot of memory inspection tools and also the windows subsystem for linux)
    I replaced it with a trivial mmap allocator which never unmaps the memory
    (but reuses the memory if a runtime ICs gets deleted)
    I think this is fine for now:
    - there are <100 runtime ICs used per test
    - because all runtime ICs have the same size there is no problem with fragmentation
    5cae67fb
ics.h 4.15 KB