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

Anton Kozlov akozlov at openjdk.org
Tue Mar 26 20:50:36 UTC 2024


On Tue, 26 Mar 2024 08:04:02 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()`.
>
> Volker Simonis has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Extract delay to constant

Thanks, LGTM

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

Marked as reviewed by akozlov (Lead).

PR Review: https://git.openjdk.org/crac/pull/153#pullrequestreview-1961701541


More information about the crac-dev mailing list