mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Avoid default value -Xms higher than -Xmx
This commit is contained in:
parent
07b52eb2f6
commit
ef732210ee
@ -33,7 +33,7 @@ public class LauncherPreferences
|
|||||||
PREF_CUSTOM_JAVA_ARGS = DEFAULT_PREF.getString("javaArgs", "");
|
PREF_CUSTOM_JAVA_ARGS = DEFAULT_PREF.getString("javaArgs", "");
|
||||||
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
if (PREF_CUSTOM_JAVA_ARGS.isEmpty()) {
|
||||||
String DEFAULT_JAVA_ARGS =
|
String DEFAULT_JAVA_ARGS =
|
||||||
"-Xms" + androidHeap + "m " +
|
"-Xms" + (androidHeap > 800 ? 800 : androidHeap) + "m " +
|
||||||
// (32bit) More than 800mb may make JVM not allocateable and crash
|
// (32bit) More than 800mb may make JVM not allocateable and crash
|
||||||
"-Xmx" + (doubleAndroidHeap > 800 ? 800 : doubleAndroidHeap) + "m " +
|
"-Xmx" + (doubleAndroidHeap > 800 ? 800 : doubleAndroidHeap) + "m " +
|
||||||
"-XX:+UseG1GC " +
|
"-XX:+UseG1GC " +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user