3 ms·
If it's designed to be a development tool, then Address Sanitizer for C/C++/Rust does everything that Zig's general purpose allocator does and more. If you fol
by pcwalton 5y ago
If it's designed to be a development tool, then Address Sanitizer for C/C++/Rust does everything that Zig's general purpose allocator does and more.
If you follow the strategy behind Zig's "general purpose allocator" to its logical conclusion, you get Google's HWASAN for C++ [1]. It is much more advanced than an allocator that simply quarantines memory forever and uses probabilistic checking to mitigate the problems of quarantining, trading soundness for performance.
[1]: https://clang.llvm.org/docs/HardwareAssistedAddressSanitizerDesign.html https://clang.llvm.org/docs/HardwareAssistedAddressSanitizer...