code: private int calculateTableSize(Object id, int size) {
          final String methodName = "calculateTableSize()";
          int tableSize = initial_valueset_size;
          boolean finish = false;
          do {
              if (size > tableSize) {
                  tableSize = (tableSize * 2) + 1;
              } else {
                  float ratio = (float) tableSize / (float) size;
                  if (ratio < 1.5) {
                      tableSize = (tableSize * 2) + 1;
                  }
                  finish = true;
              }
          } while (finish == false);
          if (tc.isDebugEnabled())
              Tr.debug(tc, methodName, "cacheName=" + this.cacheName + " id=" + id + " size=" + size + " tableSize=" + tableSize);
          return tableSize;
      }
docs: *************************************************************************
  calculateTableSize() Return the tablesize.
  ************************************************************************