private void resize() {
private final void resize() {
  private void resize() {    // length must be power of two for fast "&" hashing,    // otherwise we would use "%"    InstanceStats[] oldTable = objs;    if (oldTable == null) {      objs = new InstanceStats[8];      objs_threshold = objs.length * 7;      return;    }    int oldCapacity = oldTable.length;    int newCapacity = (oldCapacity << 1);    InstanceStats[] newTable = new InstanceStats[newCapacity];    for (int i = 0; i < oldCapacity; i++) {      InstanceStats next = null;      for (InstanceStats is = oldTable[i];          is != null;          is = next) {        next = is.next;        is.next = null;        Object o = is.get();        if (o == null) {          gc(is);          objs_size--;          continue;        }        int h = hash(o, newCapacity);        InstanceStats new_is = newTable[h];        if (new_is != null) {          is.next = new_is;        }        newTable[h] = is;      }    }    objs = newTable;    objs_threshold = newCapacity * 7;  }