From c3d24ac7e55bd982d4b49f4b2d89b894c8ad6cc6 Mon Sep 17 00:00:00 2001 From: Vera-Firefly <87926662+Vera-Firefly@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:41:43 +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 e03deedc7..71354f7fb 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 @@ -285,6 +285,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