summaryrefslogtreecommitdiff
path: root/rts/Threads.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2023-05-02 13:00:50 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-15 18:02:20 -0400
commit73b1e87c76093c2e1de395472ffb3048cbf01e99 (patch)
tree635a8cdbb031da39d0c028de929cc28b5af90959 /rts/Threads.h
parenta5f5f067377d43867aee07e5696c59cff46436fd (diff)
downloadhaskell-73b1e87c76093c2e1de395472ffb3048cbf01e99.tar.gz
rts: Assert that pointers aren't cleared by -DZ
This turns many segmentation faults into much easier-to-debug assertion failures by ensuring that LOOKS_LIKE_*_PTR checks recognize bit-patterns produced by `+RTS -DZ` clearing as invalid pointers. This is a bit ad-hoc but this is the debug runtime.
Diffstat (limited to 'rts/Threads.h')
0 files changed, 0 insertions, 0 deletions