aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_debug.cpp
diff options
context:
space:
mode:
authorKarl Zylinski <karl@zylinski.se>2024-12-21 15:47:26 +0100
committerKarl Zylinski <karl@zylinski.se>2024-12-21 15:49:48 +0100
commite5f32e145512a1fb0db142a214dee2d3b42ac073 (patch)
tree58b35cc719a679a11125f9bc47bc248ffd9735ef /src/llvm_backend_debug.cpp
parent314c41ef33a2d11e4313ecca0c708b8d02cd59d7 (diff)
Makes tracking allocator default to crashing on a bad free instead of add to bad_free_array. The bad_free_array remains to not break old code. The new default behavior is implemented in a callback that you can override, there's a second provided callback that provides the old behavior where an element was added to bad_free_array. Rationale: Many people are just checking the allocation_map, but don't check the bad free array. Several examples throughout core that use tracking allocator don't check bad_free_array either, so people have been taught not to check it.
Diffstat (limited to 'src/llvm_backend_debug.cpp')
0 files changed, 0 insertions, 0 deletions