freenode/#sbcl - IRC Chatlog
Search
6:55:52
fiddlerwoaroof
I'm running into an issue with mmap and features of macOS that discourage WX memory and I'm not entirely sure how to solve them
8:39:19
exit70[m]
I wonder is it a similar situation on openbsd? http://undeadly.org/cgi?action=article&sid=20160527203200
8:58:13
exit70[m]
fiddlerwoaroof: apple's apparent workaround: https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon
9:16:00
fiddlerwoaroof
sbcl uses MAP_FIXED to allocate some memory regions at well-known addresses, and macOS doesn't like MAP_JIT|MAP_FIXED
11:35:50
Krystof
fiddlerwoaroof: this may not be optimal, but I *think* that all heaps are relocatable, and the heap is the only thing that needs to be MAP_JIT
11:59:42
stassats
but toggling between rx and rw is going to be a problem for the code already running in rx
13:26:05
stassats
well, if gcc and clang do it, i guess no reason not to, maybe this is just some slow arm core
13:31:24
stassats
FAST-TRUNCATE-C/UNSIGNED=>UNSIGNED also does multiply-add for the remainder even if it's unused...