diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-03-16 15:45:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-16 18:45:10 -0400 |
| commit | 242ab81112c05fa815523551a6f612c5a12c52b2 (patch) | |
| tree | 32b581f036137436932883ffdfab24aec64576db /src/codegen/spirv/Cache.zig | |
| parent | 1b8d1b18c7ec1c8002046d8a7e131bf21ccf92ca (diff) | |
| download | zig-242ab81112c05fa815523551a6f612c5a12c52b2.tar.gz zig-242ab81112c05fa815523551a6f612c5a12c52b2.zip | |
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.
Diffstat (limited to 'src/codegen/spirv/Cache.zig')
0 files changed, 0 insertions, 0 deletions
