8151534: Refactor ArrayAllocator for easier reuse

Reviewed-by: tschatzl, brutisso
2 files changed