Skip to content

Commit 701e63a

Browse files
Fix: insert additional jvm argument for iOS 26
Automatically add `-XX:+MirrorMappedCodeCache` for iOS 26. This can also be used on lower iOS and useful for live debugging, but it doubles the virtual memory usage for code cache, hence it’s not a default. Signed-off-by: Duy Tran <40482367+khanhduytran0@users.noreply.github.com>
1 parent 1717632 commit 701e63a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Natives/JavaLauncher.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi
226226
margv[++margc] = "-XX:+UnlockExperimentalVMOptions";
227227
margv[++margc] = "-XX:+DisablePrimordialThreadGuardPages";
228228

229+
// On iOS 26, use mirror mapped JIT by default
230+
if (@available(iOS 26.0, *)) {
231+
margv[++margc] = "-XX:+MirrorMappedCodeCache";
232+
}
233+
229234
// Disable Forge 1.16.x early progress window
230235
margv[++margc] = "-Dfml.earlyprogresswindow=false";
231236

0 commit comments

Comments
 (0)