code: public List<MemorySegment> allocatePages(Object owner, int numPages) throws MemoryAllocationException {
  		final ArrayList<MemorySegment> segs = new ArrayList<MemorySegment>(numPages);
  		allocatePages(owner, segs, numPages);
  		return segs;
  	}
docs: Allocates a set of memory segments from this memory manager. If the memory manager pre-allocated the
  segments, they will be taken from the pool of memory segments. Otherwise, they will be allocated
  as part of this call.
  
  @param owner The owner to associate with the memory segment, for the fallback release.
  @param numPages The number of pages to allocate.
  @return A list with the memory segments.
  @throws MemoryAllocationException Thrown, if this memory manager does not have the requested amount
  of memory pages any more.