[PATCH] D40349: [LSan] New experimental flag for background leak checking before exit.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 11:33:17 PST 2017


alekseyshl added inline comments.


================
Comment at: lib/asan/asan_rtl.cc:463
+    if (common_flags()->detect_leaks) {
+      __lsan::MaybeStartBackgroudLeakCheckingThread();
+      if (common_flags()->leak_check_at_exit) {
----------------
FYI, this won't work on Android (see D27003, for example). Same for LSan.


https://reviews.llvm.org/D40349





More information about the llvm-commits mailing list