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

Anton Kozlov akozlov at openjdk.org
Thu Apr 13 15:31:53 UTC 2023


On Thu, 30 Mar 2023 14:34:20 GMT, Radim Vansa <duke at openjdk.org> wrote:

> Therefore things snapshot might seem to take no time, but System.nanoTime() is still monotonic.

That's true and that is my concern. Before this change it was possible to measure how much time we've spent in checkpoint. My comment was that if we change the code as proposed, we'll deliberately provide inaccurate measurements based on realtime, not on the monotinic clock. Doing the adjustements is worse than doing nothing when restoring in the same environment.

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

PR Review Comment: https://git.openjdk.org/crac/pull/53#discussion_r1165699208


More information about the crac-dev mailing list