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

Volker Simonis simonis at openjdk.org
Tue Mar 19 10:02:06 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()`.

Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:

  Added test for -XX:+/-PerfDisableSharedMem

-------------

Changes:
  - all: https://git.openjdk.org/crac/pull/153/files
  - new: https://git.openjdk.org/crac/pull/153/files/5385fe90..78c171fe

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=crac&pr=153&range=01
 - incr: https://webrevs.openjdk.org/?repo=crac&pr=153&range=00-01

  Stats: 45 lines in 1 file changed: 37 ins; 0 del; 8 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