Skip to content

Commit

Permalink
Merge pull request #492 from JasonFengJ9/cracx64
Browse files Browse the repository at this point in the history
CRaC is only supported on Linux amd64
  • Loading branch information
smlambert authored Jan 26, 2024
2 parents dc7287a + 5906625 commit 214feb6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/org/openj9/envInfo/JavaInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,13 @@ public String getJavaVersion() {
}

public void checkCRIU() {
String isCRIUCapable = System.getProperty("org.eclipse.openj9.criu.isCRIUCapable");
if ((isCRIUCapable != null) && isCRIUCapable.equals("true")) {
if ("true".equalsIgnoreCase(System.getProperty("org.eclipse.openj9.criu.isCRIUCapable"))) {
// CRIU is only supported on Linux.
detectedTfs.add("CRIU");
detectedTfs.add("CRAC");
if ("amd64".equalsIgnoreCase(System.getProperty("os.arch"))) {
// CRaC is only supported on Linux amd64.
detectedTfs.add("CRAC");
}
}
}

Expand Down

0 comments on commit 214feb6

Please sign in to comment.