Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8347532

[CRaC] CRaCResetStartTime breaks cgroups caching

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-crac
    • repo-crac
    • hotspot
    • None
    • generic
    • linux

      The default setting `-XX:+CRaCResetStartTime` causes trouble in caching cgroup data: `CachedMetric` checks if it should reload current metrics by comparing `os::elapsed_counter()` to `_next_check_counter` (recorded before checkpoint). As `CRaCResetStartTime` causes `os::elapsed_counter()` to run from 0 on restore it breaks this logic, effectively prohibiting any update of those.

      There might be more places that cache `os::elapsed_counter()` and `os::elapsedTime()` (over 100 usages across codebase) and expect this method to return monotonic values.

            tpushkin Timofei Pushkin
            tpushkin Timofei Pushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: