logger.debug(e.getMessage());
}
}
if (maxBytes > 0 && DeallocatorReference.totalBytes + r.bytes > maxBytes) {
deallocate();
<BUG>throw new OutOfMemoryError("Cannot allocate " + DeallocatorReference.totalBytes
+ " + " + r.bytes + " bytes (> Pointer.maxBytes)");
} else if (maxPhysicalBytes > 0 && lastPhysicalBytes > maxPhysicalBytes) {</BUG>
deallocate();
<BUG>throw new OutOfMemoryError("Physical memory usage is too high ("

+ lastPhysicalBytes + " > Pointer.maxPhysicalBytes)");
}</BUG>
if (logger.isDebugEnabled()) {

logger.debug(e.getMessage());
}
}
if (maxBytes > 0 && DeallocatorReference.totalBytes + r.bytes > maxBytes) {
deallocate();
throw new OutOfMemoryError("Too much memory has already been allocated: totalBytes = "
+ formatBytes(DeallocatorReference.totalBytes) + " + " + formatBytes(r.bytes) + " > maxBytes = " + formatBytes(maxBytes));
} else if (maxPhysicalBytes > 0 && lastPhysicalBytes > maxPhysicalBytes) {
deallocate();
throw new OutOfMemoryError("Physical memory usage is too high: physicalBytes = "
+ formatBytes(lastPhysicalBytes) + " > maxPhysicalBytes = " + formatBytes(maxPhysicalBytes));
}
if (logger.isDebugEnabled()) {
