docs: private void updateMax(int idx, long v) {
      AtomicLong current = max.getCurrent(idx);
      long m = current.get();
      while (v > m) {
        if (current.compareAndSet(m, v)) {
          break;
        }
        m = current.get();
      }
    }