OpenSmalltalk / opensmalltalk-vm

Cross-platform virtual machine for Squeak, Pharo, Cuis, and Newspeak.
http://opensmalltalk.org/
Other
563 stars 111 forks source link

pthread_jit_write_with_callback_np() vs. pthread_jit_write_protect_np() #682

Open marceltaeumel opened 7 months ago

marceltaeumel commented 7 months ago

Apple suggests pthread_jit_write_with_callback_np() and a JIT callback allow list via the com.apple.security.cs.jit-write-allowlist entitlement as the way to port a JIT to Apple silicon.

We use pthread_jit_write_protect_np() at this point. How much longer is this going to work? Maybe we want to refactor this to the callback approach?

This is just a heads-up. 😺

krono commented 7 months ago

Note the entitlement way is confined to hardenen runtime app which is probably not our concern