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

Radim Vansa rvansa at openjdk.org
Mon Mar 18 11:04:15 UTC 2024


On Mon, 18 Mar 2024 10:37:04 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> 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()`.

Thanks, do you think we should have a test for the flag?

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

PR Comment: https://git.openjdk.org/crac/pull/153#issuecomment-2003572864


More information about the crac-dev mailing list