Fix rare crash when libjemalloc-dev is installed

A better fix in the future would be to figure out why jemalloc causes it to crash.
This commit is contained in:
Hayden authored and GitHub committed 2021-02-01 17:59:26 -05:00
1 parent dd8f6e4edb
commit e5905c57ab
1 file changed
+1
+1
View File
@@ -60,6 +60,7 @@ int launchJVM(int argc, char *argv[]) {
margv[margc++] = "-XstartOnFirstThread";
margv[margc++] = "-Djava.library.path=/Applications/PojavLauncher.app/Frameworks";
margv[margc++] = "-Dorg.lwjgl.opengl.libname=libGL.dylib";
margv[margc++] = "-Dorg.lwjgl.system.allocator=system";
char jvmargs[10000];
FILE* argsFile = fopen(args_path, "r");
debug("Reading custom JVM args (overrideargs.txt), opened=%d\n", argsFile != NULL);