Skip to content

Commit

Permalink
CRaC is only supported on Linux amd64
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Feng <fengj@ca.ibm.com>
  • Loading branch information
JasonFengJ9 committed Jan 26, 2024
1 parent dc7287a commit 5906625
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 5906625

Please sign in to comment.