Skip to content

Commit

Permalink
Default to FORK on OSX, since it might work better.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed May 5, 2024
1 parent 02e1fc8 commit a027205
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IKVM.Runtime/JVM.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ static Dictionary<string, string> 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"));

Expand Down

0 comments on commit a027205

Please sign in to comment.