docs: public void append(LogSegment segment) {
          while (true) {
              List<LogSegment> curr = contents.get();
              List<LogSegment> updated = new ArrayList<LogSegment>(curr);
              updated.add(segment);
              if (contents.compareAndSet(curr, updated)) {
                  return;
              }
          }
      }