Merge pull request #18 from Diatrus/main

Possibly fix rare crash when libjemalloc-dev is installed
This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-02-02 06:07:15 +07:00
commit b35342dbc4
1 file changed
+1
+1
View File
@@ -82,6 +82,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);