Skip to content

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

Merged
unknownbrackets merged 2 commits intomasterfrom
ios-jit-detect
Feb 22, 2021
Merged

Add iOS version detection, turn off JIT on bootup if >= 14.3.#14201
unknownbrackets merged 2 commits intomasterfrom
ios-jit-detect

Conversation

@hrydgard
Copy link
Copy Markdown
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
Copy Markdown
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]

Comment thread headless/Headless.cpp
bool System_GetPropertyBool(SystemProperty prop) {
switch (prop) {
case SYSPROP_CAN_JIT:
return true;
Copy link
Copy Markdown
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]

Comment thread ios/main.mm
@unknownbrackets
Copy link
Copy Markdown
Collaborator

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

-[Unknown]

@hrydgard
Copy link
Copy Markdown
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
Copy Markdown

ghost commented Mar 1, 2021

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

@hrydgard
Copy link
Copy Markdown
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