reintroduce hardening against partially-replaced allocator