OpenSmalltalk / opensmalltalk-vm

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

pthread_jit_write_with_callback_np() vs. pthread_jit_write_protect_np() #682

Open marceltaeumel opened 2 months ago

marceltaeumel commented 2 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 2 months ago

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