weaks: move an allocation outside a critical section