summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-07-18 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-07-19 17:12:44 +0200
commit58b862072c97c17133f3b700b71edf69ce0a7efe (patch)
tree38bf7918ccf54690290189bc8c8c57d652ff9a4a
parent251878ebc4a86b3f9c94992d89c42d3a0a60cf68 (diff)
downloadrust-58b862072c97c17133f3b700b71edf69ce0a7efe.tar.gz
Document AddressSanitizer memory leak detection defaults
-rw-r--r--src/doc/unstable-book/src/compiler-flags/sanitizer.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/sanitizer.md b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
index c15f339783f..93908e9190e 100644
--- a/src/doc/unstable-book/src/compiler-flags/sanitizer.md
+++ b/src/doc/unstable-book/src/compiler-flags/sanitizer.md
@@ -26,6 +26,9 @@ of bugs:
* Double-free, invalid free
* Memory leaks
+The memory leak detection is enabled by default on Linux, and can be enabled
+with runtime flag `ASAN_OPTIONS=detect_leaks=1` on macOS.
+
AddressSanitizer is supported on the following targets:
* `x86_64-apple-darwin`