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

Volker Simonis simonis at openjdk.org
Tue Mar 19 19:53:01 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:

  Don't busy wait for the appearance of the hs_perf file if running with -XX:+PerfDisableSharedMem


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

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

  Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 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