Use BottomMemoryAllocator only in debug build.