aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Cache.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-16 15:45:10 -0700
committerGitHub <noreply@github.com>2024-03-16 18:45:10 -0400
commit242ab81112c05fa815523551a6f612c5a12c52b2 (patch)
tree32b581f036137436932883ffdfab24aec64576db /src/codegen/spirv/Cache.zig
parent1b8d1b18c7ec1c8002046d8a7e131bf21ccf92ca (diff)
downloadzig-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