Pool memory allocation.