Should tests be run with julia --check-bounds=yes
?
#3747
Labels
testing 🧪
Tests get priority in case of emergency evacuation
julia --check-bounds=yes
?
#3747
The codebase makes extensive use of
@inbounds
, for good reason and usually pretty safely. But does it make sense to run the tests with--check-bounds=yes
to catch any cases of out-of-bounds memory accesses?Out of bounds accesses don't always produce an error and can silently lead to undefined behavior.
This may lead to slightly slower tests, although I doubt it would slow them down by much as most of the time is spend on compiling.
Might help with discovering certain issues sooner. Probably #3615 but maybe not #3320.
X-Ref: #3682 (comment)
The text was updated successfully, but these errors were encountered: