From ea77dec747c74a2777cd7709b82d640628a442ca Mon Sep 17 00:00:00 2001 From: Vera-Firefly <87926662+Vera-Firefly@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:39:23 +0800 Subject: [PATCH] Workaround[UX]: remove huge page args, as android doesn't like it --- .../src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java index 5f8504f9b..20a850b9d 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/utils/JREUtils.java @@ -282,6 +282,9 @@ public static int launchJavaVM(final Activity activity, final Runtime runtime, F purgeArg(userArgs,"-d32"); purgeArg(userArgs,"-d64"); purgeArg(userArgs, "-Xint"); + purgeArg(userArgs, "-XX:+UseTransparentHugePages"); + purgeArg(userArgs, "-XX:+UseLargePagesInMetaspace"); + purgeArg(userArgs, "-XX:+UseLargePages"); purgeArg(userArgs, "-Dorg.lwjgl.opengl.libname"); //Add automatically generated args