12006-05-31 Wolfram Gloger <wg@malloc.de> 2 3 * sysdeps/pthread/malloc-machine.h (mutex_unlock): Unlock needs 4 full memory barrier (thanks Bart Robinson). 5 62004-11-05 Wolfram Gloger <wg@malloc.de> 7 8 * malloc/hooks.c (malloc_starter, memalign_starter): Call 9 ptmalloc_init_minimal(). 10 112004-11-04 Wolfram Gloger <wg@malloc.de> 12 13 * malloc/malloc.c (USE_STARTER): New macro. 14 * malloc/hooks.c: Use USE_STARTER. 15 * malloc/arena.c: Use USE_STARTER. 16 172004-08-13 Ulrich Drepper <drepper@redhat.com> 18 19 * malloc/malloc.c: Use strong_alias instead of weak_alias wherever 20 possible. 21 222002-12-06 Roland McGrath <roland@redhat.com> 23 24 * malloc/arena.c (ptmalloc_init_minimal): New function, broken out 25 of ptmalloc_init. 26 272002-08-23 Roland McGrath <roland@redhat.com> 28 29 * malloc/hooks.c (__malloc_initialize_hook, __free_hook, 30 __malloc_hook, __realloc_hook, __memalign_hook, 31 __after_morecore_hook): Variable definitions moved to ... 32 * malloc/malloc.c: ... here, so as to be before all references. 33 342004-10-19 Wolfram Gloger <wg@malloc.de> 35 36 * malloc/hooks.c (mem2chunk_check, top_check): Handle 37 non-contiguous arena. Reported by Michael Dalton 38 <mwdalton@stanford.edu> [BZ #457]. Add further checks for top 39 chunk. 40 412004-08-08 Wolfram Gloger <wg@malloc.de> 42 43 * include/malloc.h (mstate): Move type declaration from here... 44 * malloc/malloc.h: ...to here. 45 (struct malloc_arena_info, struct malloc_global_info): New types. 46 (_int_get_arena, _int_get_arena_info, _int_get_global_info): New 47 functions. 48 * malloc/malloc.c (mSTATS, public_mSTATs, mALLINFo): Remove. 49 (_int_get_arena_info, _int_get_global_info): New functions. 50 * malloc/arena.c (_int_get_arena): New function. 51 * malloc/malloc-stats.c: New file. 52 * malloc/tst-mstats.c: New file. 53 * malloc/Makefile (tests): Add tst-mstats. 54 (distribute): Remove no-longer existing thread-m.h. 55 (dist-routines): Add malloc-stats. 56 * malloc/Versions: Add _int_get_arena, _int_get_arena_info, 57 _int_get_global_info. 58 592004-07-25 Wolfram Gloger <wg@malloc.de> 60 61 * sysdeps/generic/thread-st.h: New file. 62 * sysdeps/pthread/thread-st.h: New file. 63 * sysdeps/sproc/thread-st.h: New file. 64 * sysdeps/solaris/thread-st.h: New file. 65 * thread-st.h: Removed. 66 672004-03-18 Ulrich Drepper <drepper@redhat.com> 68 69 * malloc/malloc.c (__posix_memalign): Correct alignment check. 70 Reported by Don Heller <dheller@cse.psu.edu>. 71 722003-12-17 Jakub Jelinek <jakub@redhat.com> 73 74 * malloc/malloc.c (__posix_memalign): If __memalign_hook != NULL, 75 call it directly instead of memalign_internal. 76 772003-09-27 Wolfram Gloger <wg@malloc.de> 78 79 * malloc/malloc.c: Include <malloc-machine.h> earlier instead of 80 "thread-m.h", so that default parameters can be overridden in a 81 system-specific malloc-machine.h. Remove extra ; from extern "C" 82 closing brace. 83 * sysdeps/generic/malloc-machine.h: New file. 84 * malloc/thread-m.h: Removed. 85 862003-09-08 Wolfram Gloger <wg@malloc.de> 87 88 * malloc/malloc.c (sYSMALLOc): Move foreign sbrk accounting into 89 contiguous case. Bug report from Prem Gopalan 90 <prem@mazunetworks.com>. 91 922003-08-18 Art Haas <ahaas@airmail.net> 93 94 * malloc/malloc.h: Remove unneeded ';' where closing the C++ 95 extern block. 96 972003-06-18 Ulrich Drepper <drepper@redhat.com> 98 99 * malloc/malloc.c (public_mALLINFo): Initialize malloc if it 100 hasn't happened yet. 101 1022003-05-28 Roland McGrath <roland@redhat.com> 103 104 * malloc/malloc.h [! __GNUC__] (__const): Define if undefined. 105 1062003-05-04 H.J. Lu <hongjiu.lu@intel.com> 107 108 * malloc/arena.c (arena_get2): Add atomic_write_barrier. 109 * malloc/thread-m.h: Include <atomic.h>. 110 (atomic_full_barrier): Provide default. 111 (atomic_read_barrier): Likewise. 112 (atomic_write_barrier): Likewise. 113 1142003-05-01 Ulrich Drepper <drepper@redhat.com> 115 116 * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary. 117 1182003-01-27 Wolfram Gloger <wg@malloc.de> 119 120 * malloc/hooks.c (mem2chunk_check): Check alignment of mem 121 pointer, not of the computed chunk. Bug report from Carlos 122 O'Donell <carlos@baldric.uwo.ca>. 123 1242002-12-27 Jakub Jelinek <jakub@redhat.com> 125 126 * malloc/arena.c (ptmalloc_init): Don't call next_env_entry if 127 _environ is NULL. 128 1292002-12-17 Ulrich Drepper <drepper@redhat.com> 130 131 * malloc/malloc.c (mALLOPt): Make sure malloc is initialized. 132 1332002-12-06 Roland McGrath <roland@redhat.com> 134 135 * malloc/hooks.c [_LIBC && (USE___THREAD || (USE_TLS && !SHARED))] 136 (malloc_starter, memalign_starter, free_starter): Don't define these. 137 138 * malloc/hooks.c (memalign_starter): New function. 139 * malloc/malloc.c: Declare it. 140 * malloc/arena.c (save_memalign_hook): New variable. 141 (ptmalloc_init): Set __memalign_hook to memalign_starter. 142 1432002-11-18 Wolfram Gloger <wg@malloc.de> 144 145 * malloc/arena.c 146 (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2): Do 147 nothing if not initialized. Bug report from Marcus Brinkmann 148 <Marcus.Brinkmann@ruhr-uni-bochum.de>. 149 1502002-10-07 Wolfram Gloger <wg@malloc.de> 151 152 * malloc/malloc.c (sYSMALLOc): Only check for breakage due 153 to foreign sbrk()'s if arena is contiguous. Bug report from 154 Bruno Haible <bruno@clisp.org>. 155 1562002-07-11 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> 157 158 * malloc/hooks.c: typo fix in NO_THREADS case, realloc_check 159 fix in HAVE_MREMAP case. 160 1612002-06-11 Wolfram Gloger <wg@malloc.de> 162 163 * malloc/malloc.c: Fix error path when new_heap() returns NULL. 164 Reported by Michael Meissner <meissner@redhat.com>. 165 1662002-03-29 Wolfram Gloger <wg@malloc.de> 167 168 * malloc/malloc.c: Add short description and prototypes for 169 malloc_get_state, malloc_set_state and posix_memalign, for 170 consistency and to avoid warnings with -Wstrict-prototypes. 171 Reported by Andreas Jaeger <aj@suse.de>. 172 1732002-03-13 Wolfram Gloger <wg@malloc.de> 174 175 * malloc/malloc.c (sYSMALLOc): Don't change brk if mmap 176 failed. 177 1782002-01-18 Wolfram Gloger <wg@malloc.de> 179 180 * malloc/malloc.c: Rewrite, adapted from Doug Lea's malloc-2.7.0.c. 181 * malloc/malloc.h: Likewise. 182 * malloc/arena.c: New file. 183 * malloc/hooks.c: New file. 184 * malloc/tst-mallocstate.c: New file. 185 * malloc/Makefile: Add new testcase tst-mallocstate. 186 Add arena.c and hooks.c to distribute. Fix commented CPPFLAGS. 187