@Override
  public long size() {
    readLock().lock();
    try {
      return size;
    } finally {
      readLock().unlock();
    }
  }
Gets the current size of this file in bytes. Does not do locking, so should only be called when
holding a lock.
jimfs/src/main/java/com/google/common/jimfs/RegularFile.java