protected void normaliseArgs() {
    if (capacity < 1) capacity = 1;
    if (allocationSize < MIN_ALLOCATION_SIZE) {
      allocationSize = MIN_ALLOCATION_SIZE;
      while (128 * allocationSize < capacity && allocationSize < 64 * 1024 * 1024)
        allocationSize <<= 1;
    }
  }