@Override
  public void undo(final long mark) {
    if (undoLog.isEmpty()) {
      return;
    }
    int pos = undoLog.size() - 1;
    while (pos >= 0) {
      UndoEntry<T> entry = undoLog.get(pos);
      if (entry.level <= mark) {
        return;
      }
      value = entry.value;
      undoLog.remove(pos);
      pos--;
    }
  }
Set a new value in the scalar.

@param value new value
evm/src/main/java/org/hyperledger/besu/collections/undo/UndoScalar.java