pub fn take_pointer_invalidation() -> bool
Returns true if a pointer invalidation was pending and clears the flag.