if (this.isShutDown) {
throw new IllegalStateException("Memory manager has been shut down.");
}
if (numPages > this.freeSegments.size()) {
throw new MemoryAllocationException("Could not allocate " + numPages + " pages. Only " +
this.freeSegments.size() + " pages are remaining.");
}
Set<DefaultMemorySegment> segmentsForOwner = this.allocatedSegments.get(owner);
if (segmentsForOwner == null) {