[crac] RFR: 8328344: [CRaC] Avoid error when running with -XX:+PerfDisableSharedMem

Volker Simonis simonis at openjdk.org
Mon Mar 18 11:04:15 UTC 2024

CRaC tries to unconditionally restore the hsperf file, even if the checkpointed JVM process was started with `-XX:+PerfDisableSharedMem`.

The fix is trivial: check for the existence of the hsperf file in `PerfMemoryLinux::restore()` just as we already do it in `PerfMemoryLinux::checkpoint()`.


Commit messages:
 - 8328344: [CRaC] Avoid error when running with -XX:+PerfDisableSharedMem

Changes: https://git.openjdk.org/crac/pull/153/files
  Webrev: https://webrevs.openjdk.org/?repo=crac&pr=153&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328344
  Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/crac/pull/153.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/153/head:pull/153

PR: https://git.openjdk.org/crac/pull/153

More information about the crac-dev mailing list