Alternatively:

```java
if (isTinyOrSmall(...)) {
  ...
} else if (normCapacity <= chunkSize) {
  if (cache.allocateNormal(...)) {
    return;
  }
} else { // normCapacity > chunkSize
  allocateHuge(buf, reqCapacity);
  return;
}

allocateNormal(buf, reqCapacity, normCapacity);
```