code: @Override
  	public List<MemorySegment> allocatePages(AbstractInvokable owner, int numPages) throws MemoryAllocationException {
  		final ArrayList<MemorySegment> segs = new ArrayList<MemorySegment>(numPages);
  		allocatePages(owner, segs, numPages);
  		return segs;
  	}
docs: ------------------------------------------------------------------------