Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iOS version detection, turn off JIT on bootup if >= 14.3. #14201

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Feb 21, 2021

I'm a bit undecided on exactly what we should do.

"Fixes" #14196

Options seem to be:

  • Entirely hide JIT if iOS version >= 14.3 (and debugger is not attached)
  • Default it to off, but let the user turn it on persistently. Which will persistently crash if no debugger attached.
  • Force off on startup if iOS version >= 14.3 and no debugger attached.

In the two second options, the user can still attempt to turn it on in case Apple makes a boo-boo and accidentally allows it again.

This implements the building blocks, and option 3 above.

Hm.

@hrydgard hrydgard added this to the v1.12.0 milestone Feb 21, 2021
Copy link
Collaborator

@unknownbrackets unknownbrackets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely needs app-android.cpp, no?

-[Unknown]

bool System_GetPropertyBool(SystemProperty prop) {
switch (prop) {
case SYSPROP_CAN_JIT:
return true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for remembering, sometimes seems like headless always gets last pick. Though indentation is a bit spacier than usual.

-[Unknown]

ios/main.mm Show resolved Hide resolved
@unknownbrackets
Copy link
Collaborator

Seems libretro won't even hit this code, so we only need Android left.

-[Unknown]

@hrydgard
Copy link
Owner Author

I had actually done Android too, it was just sitting unsaved in my editor for some reason.

@unknownbrackets unknownbrackets merged commit 70c7c3e into master Feb 22, 2021
@hrydgard hrydgard deleted the ios-jit-detect branch February 22, 2021 14:12
@ghost
Copy link

ghost commented Mar 1, 2021

Shouldn't this be >= 14.4? JIT still works on 14.3 (on A12 and up).

@hrydgard
Copy link
Owner Author

hrydgard commented Mar 1, 2021

I was under the impression it worked on 12.2 but not later, apparently I was a minor version off. Can fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants