]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Document M_PERTURB
authorAndreas Schwab <schwab@redhat.com>
Mon, 26 Jul 2010 13:28:15 +0000 (15:28 +0200)
committerAndreas Schwab <schwab@redhat.com>
Wed, 1 Dec 2010 14:35:09 +0000 (15:35 +0100)
(cherry picked from commit deb9cabbf475da0b65d7acdb364987c4a15b4214)

ChangeLog
manual/memory.texi

index 87da49d9dd1238288c716894284962706d005264..8af56df23fbaada589722b26bcb9d7616c12d322 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-27  Andreas Schwab  <schwab@redhat.com>
+
+       * manual/memory.texi (Malloc Tunable Parameters): Document
+       M_PERTURB.
+
 2010-07-26  Roland McGrath  <roland@redhat.com>
 
        [BZ #11840]
index 59ea1ee34252903a9cffd3f1428983ef7a5aa1a4..db63c3313bf761453bb5b86b2a9c46d365be1c3a 100644 (file)
@@ -702,6 +702,11 @@ be allocated via @code{mmap}.
 @item M_MMAP_MAX
 The maximum number of chunks to allocate with @code{mmap}.  Setting this
 to zero disables all use of @code{mmap}.
+@item M_PERTURB
+If non-zero, memory blocks are filled with values depending on some
+low order bits of this parameter when they are allocated (except when
+allocated by @code{calloc}) and freed.  This can be used to debug the
+use of uninitialized or freed heap memory.
 @end table
 
 @end deftypefun