From a027205053c2de7d8f1ef19d75411ce57bfebadf Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Sun, 5 May 2024 17:58:01 -0500 Subject: [PATCH] Default to FORK on OSX, since it might work better. --- src/IKVM.Runtime/JVM.Properties.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IKVM.Runtime/JVM.Properties.cs b/src/IKVM.Runtime/JVM.Properties.cs index 713ac4f57..93f545175 100644 --- a/src/IKVM.Runtime/JVM.Properties.cs +++ b/src/IKVM.Runtime/JVM.Properties.cs @@ -288,6 +288,10 @@ static Dictionary GetInitProperties() p["java.awt.headless"] = "true"; p["sun.nio.MaxDirectMemorySize"] = "-1"; + // default to FORK on OSX, instead of posix_spawn with jspawnhelper + if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + p["jdk.lang.Process.launchMechanism"] = "FORK"; + // cacerts is mounted by the VFS into ikvmHome p.Add("javax.net.ssl.trustStore", Path.Combine(HomePath, "lib", "security", "cacerts"));