Merge "Move allocateBuffers to RT" into pi-dev