[compiler-rt] r235727 - Revert r235726 "interface"

Sergey Matveev earthdok at google.com
Fri Apr 24 09:51:21 PDT 2015


Author: smatveev
Date: Fri Apr 24 11:51:21 2015
New Revision: 235727

URL: http://llvm.org/viewvc/llvm-project?rev=235727&view=rev
Log:
Revert r235726 "interface"

Accidentally committed from local branch. :(

Modified:
    compiler-rt/trunk/include/sanitizer/lsan_interface.h

Modified: compiler-rt/trunk/include/sanitizer/lsan_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/lsan_interface.h?rev=235727&r1=235726&r2=235727&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/lsan_interface.h (original)
+++ compiler-rt/trunk/include/sanitizer/lsan_interface.h Fri Apr 24 11:51:21 2015
@@ -41,25 +41,14 @@ extern "C" {
   void __lsan_register_root_region(const void *p, size_t size);
   void __lsan_unregister_root_region(const void *p, size_t size);
 
-  // Check for leaks now. This function behaves identically to the default
-  // end-of-process leak check. In particular, it will terminate the process if
-  // leaks are found and the exit_code flag is non-zero.
-  // Subsequent calls to this function will have no effect and end-of-process
-  // leak check will not run. Effectively, end-of-process leak check is moved to
-  // the time of first invocation of this function.
-  // By calling this function early during process shutdown, you can instruct
-  // LSan to ignore shutdown-only leaks which happen later on.
+  // Calling this function makes LSan enter the leak checking phase immediately.
+  // Use this if normal end-of-process leak checking happens too late (e.g. if
+  // you have intentional memory leaks in your shutdown code). Calling this
+  // function overrides end-of-process leak checking; it must be called at
+  // most once per process. This function will terminate the process if there
+  // are memory leaks and the exit_code flag is non-zero.
   void __lsan_do_leak_check();
 
-  // Check for leaks now. Returns zero if leaks are found, non-zero otherwise.
-  // This function may be called repeatedly, e.g. to periodically check a
-  // long-running process. It prints a leak report if appropriate, but does not
-  // terminate the process. It does not affect the behavior of
-  // __lsan_do_leak_check() or the end-of-process leak check, and is not
-  // affected by them.
-  // This function will have no effect if leak detection is disabled.
-  int __lsan_do_extra_leak_check();
-
   // The user may optionally provide this function to disallow leak checking
   // for the program it is linked into (if the return value is non-zero). This
   // function must be defined as returning a constant value; any behavior beyond





More information about the llvm-commits mailing list