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:
1 parent
dd8f6e4edb
commit
e5905c57ab
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user