about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2013-10-18 09:32:35 +0200
committerOndřej Bílka <neleai@seznam.cz>2013-10-18 09:35:15 +0200
commit0bfcf2c73cf6a68be978e66248cec5c4c03f07fa (patch)
tree796486491fbaa3d52bf0216379e2ed515ae77af3
parent264aad1e6aca30efddfcfae05c44ad38bb5e137d (diff)
downloadglibc-0bfcf2c73cf6a68be978e66248cec5c4c03f07fa.tar.gz
glibc-0bfcf2c73cf6a68be978e66248cec5c4c03f07fa.tar.xz
glibc-0bfcf2c73cf6a68be978e66248cec5c4c03f07fa.zip
Remove assert in malloc statistic. Fixes bug 12486.
-rw-r--r--ChangeLog5
-rw-r--r--malloc/malloc.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index dc8745a31b..1c59515829 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
+
+	[BZ #12486]
+	* malloc/malloc.c: remove checks for statistics.
+
 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
 
 	[BZ #15277]
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 29382340cf..1a18c3f5f2 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -2216,15 +2216,6 @@ static void do_check_malloc_state(mstate av)
   /* top chunk is OK */
   check_chunk(av, av->top);
 
-  /* sanity checks for statistics */
-
-  assert(mp_.n_mmaps <= mp_.max_n_mmaps);
-
-  assert((unsigned long)(av->system_mem) <=
-	 (unsigned long)(av->max_system_mem));
-
-  assert((unsigned long)(mp_.mmapped_mem) <=
-	 (unsigned long)(mp_.max_mmapped_mem));
 }
 #endif