[crac] RFR: Correct System.nanotime() value after restore

Radim Vansa duke at openjdk.org
Thu Mar 30 06:21:05 UTC 2023


On Thu, 23 Mar 2023 15:38:35 GMT, Radim Vansa <duke at openjdk.org> wrote:

> There are various places both inside JDK and in libraries that rely on monotonicity of `System.nanotime()`. When the process is restored on a different machine the value will likely differ as the implementation provides time since machine boot. This PR records wall clock time before checkpoint and after restore and tries to adjust the value provided by nanotime() to reasonably correct value.

I am using this one: https://github.com/CRaC/criu/releases/tag/release-1.3

Version: 3.17.1-crac
GitID: 8926431

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

PR Comment: https://git.openjdk.org/crac/pull/53#issuecomment-1489756964


More information about the crac-dev mailing list