Skip to content

Commit

Permalink
Thread pinning is only supported in Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Aug 8, 2020
1 parent 6f6020a commit fea1fa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/som/vm/VmSettings.java
Expand Up @@ -88,7 +88,9 @@ public class VmSettings implements Settings {

BASE_DIRECTORY = System.getProperty("som.baseDir", System.getProperty("user.dir"));

USE_PINNING = getBool("som.usePinning", true);
String osName = System.getProperty("os.name", "generic").toLowerCase();
boolean isLinux = osName.contains("linux");
USE_PINNING = getBool("som.usePinning", true) && isLinux;
}

private static boolean getBool(final String prop, final boolean defaultVal) {
Expand Down

0 comments on commit fea1fa5

Please sign in to comment.