Move allocations in runtime image generator to ArenaPool.

So that we can reclaim the memory right after the image generation.

Bug: 260557058
Bug: 272267524
Test: test.py
Change-Id: I43eb4335df9bd23f4ae0c55e0f0afb529b7a49ca
1 file changed