summaryrefslogtreecommitdiff
path: root/rts/RetainerProfile.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-28 13:37:39 -0400
committerBen Gamari <ben@smart-cactus.org>2019-10-30 21:47:05 -0400
commit4ac51fb9d7ac9120adee88aeb510973d47017e93 (patch)
treee7468d5861aefcab85fc0dfd2119f3be6a0f9d6d /rts/RetainerProfile.h
parent5f7b29694f4658519f09cbfcaafcadce6a0a1cc7 (diff)
downloadhaskell-wip/linker-per-oc-m32.tar.gz
rts: Make m32 allocator per-ObjectCodewip/linker-per-oc-m32
MacOS Catalina is finally going to force our hand in forbidden writable exeutable mappings. Unfortunately, this is quite incompatible with the current global m32 allocator, which mixes symbols from various objects in a single page. The problem here is that some of these symbols may not yet be resolved (e.g. had relocations performed) as this happens lazily (and therefore we can't yet make the section read-only and therefore executable). The easiest way around this is to simply create one m32 allocator per ObjectCode. This may slightly increase fragmentation for short-running programs but I suspect will actually improve fragmentation for programs doing lots of loading/unloading since we can always free all of the pages allocated to an object when it is unloaded (although this ability will only be implemented in a later patch).
Diffstat (limited to 'rts/RetainerProfile.h')
0 files changed, 0 insertions, 0 deletions