code: protected void expand(int min_size_needed) {
          LogEntry[] new_entries=new LogEntry[Math.max(entries.length + INCR, entries.length + min_size_needed)];
          System.arraycopy(entries, 0, new_entries, 0, entries.length);
          entries=new_entries;
      }
docs: Lock must be held to call this method