Skip to content

Investigate use of new Apple JIT APIs #108423

@filipnavara

Description

@filipnavara

Apple silently released JIT APIs for iOS 17.4+ / iPadOS 18+: https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon

They are the same APIs that were previously available on macOS - pthread_jit_write_with_callback_np and PTHREAD_JIT_WRITE_ALLOW_CALLBACKS_NP, and they require new entitlements. Unfortunately, they are also distinct from the original pthread_jit_write_protect_np API that was introduced with macOS 11 to support Apple Silicon, and it requires a different approach to use it.

Neither CoreCLR nor MonoVM is currently structured in a way to make it easy to adapt.

This may possibly be interesting if we revive the CoreCLR on iOS (Simulator) PR, or as an option to enable JIT for Hot Restart (MonoVM) scenarios when deploying to iOS from Windows.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions