+2002-07-06 Bruno Haible <bruno@clisp.org>
+
+ * malloc/hooks.c (public_gET_STATe): Access max_total_mem in mp_.
+
2002-07-11 Ulrich Drepper <drepper@redhat.com>
* resolv/res_hconf.c (_res_hconf_init): Move code into new
if (chunk_is_mmapped(oldp)) {
#if HAVE_MREMAP
mchunkptr newp = mremap_chunk(oldp, nb);
- if(!newp) {
+ if(newp)
+ newmem = chunk2mem(newp);
+ else
#endif
+ {
/* Note the extra SIZE_SZ overhead. */
if(oldsize - SIZE_SZ >= nb)
newmem = oldmem; /* do nothing */
munmap_chunk(oldp);
}
}
-#if HAVE_MREMAP
- } else {
- newmem = chunk2mem(newp);
}
-#endif
} else {
#endif /* HAVE_MMAP */
if (top_check() >= 0)
ms->check_action = check_action;
ms->max_sbrked_mem = main_arena.max_system_mem;
#ifdef NO_THREADS
- ms->max_total_mem = max_total_mem;
+ ms->max_total_mem = mp_.max_total_mem;
#else
ms->max_total_mem = 0;
#endif