Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove assert in malloc statistic. Fixes bug 12486.
  • Loading branch information
Ondřej Bílka committed Oct 18, 2013
1 parent 264aad1 commit 0bfcf2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions 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]
Expand Down
9 changes: 0 additions & 9 deletions malloc/malloc.c
Expand Up @@ -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

Expand Down

0 comments on commit 0bfcf2c

Please sign in to comment.