Skip to content

Commit

Permalink
Add CRAC when org.eclipse.openj9.criu.isCRaCCapable is set
Browse files Browse the repository at this point in the history
CRIU support is required by CRaC.

Signed-off-by: Jason Feng <[email protected]>
  • Loading branch information
JasonFengJ9 committed Feb 8, 2024
1 parent 1607d65 commit cc90127
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/org/openj9/envInfo/JavaInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,10 @@ public String getJavaVersion() {

public void checkCRIU() {
if ("true".equalsIgnoreCase(System.getProperty("org.eclipse.openj9.criu.isCRIUCapable"))) {
// CRIU is only supported on Linux.
detectedTfs.add("CRIU");
if ("amd64".equalsIgnoreCase(System.getProperty("os.arch"))) {
// CRaC is only supported on Linux amd64.
detectedTfs.add("CRAC");
// CRIU support is required by CRaC
if ("true".equalsIgnoreCase(System.getProperty("org.eclipse.openj9.criu.isCRaCCapable"))) {
detectedTfs.add("CRAC");
}
}
}
Expand Down

0 comments on commit cc90127

Please sign in to comment.