8037959: BitMap::resize frees old map before copying memory if !in_resource_area

Add reallocate functionality to ArrayAllocator and use it from BitMap::resize

Reviewed-by: brutisso, tschatzl
4 files changed