view tools/clang/docs/LeakSanitizer.rst @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents e4204d083e25
children 7d135dc70f03
line wrap: on
line source

================
LeakSanitizer
================

.. contents::
   :local:

Introduction
============

LeakSanitizer is a run-time memory leak detector. It can be combined with
:doc:`AddressSanitizer` to get both memory error and leak detection.
LeakSanitizer does not introduce any additional slowdown when used in this mode.
The LeakSanitizer runtime can also be linked in separately to get leak detection
only, at a minimal performance cost.

Current status
==============

LeakSanitizer is turned on by default, but it is only supported on x86\_64
Linux.

The combined mode has been tested on fairly large software projects. The
stand-alone mode has received much less testing.

There are plans to support LeakSanitizer in :doc:`MemorySanitizer` builds.

More Information
================

`https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer
<https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer>`_