std: introduce pointer stability locks to hash maps (#17719)

This adds std.debug.SafetyLock and uses it in std.HashMapUnmanaged by
adding lockPointers() and unlockPointers().

This provides a way to detect when an illegal modification has happened and
panic rather than invoke undefined behavior.
242ab81112Andrew Kelley committed on 3/16/2024, 10:45:10 PM· committed by GitHubparent1b8d1b1
3 files changedLine totals unavailable