Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 1 | Following are change highlights associated with official releases. Important |
| 2 | bug fixes are all mentioned, but internal enhancements are omitted here for |
| 3 | brevity (even though they are more fun to write about). Much more detail can be |
| 4 | found in the git revision history: |
| 5 | |
| 6 | http://www.canonware.com/cgi-bin/gitweb.cgi?p=jemalloc.git |
| 7 | git://canonware.com/jemalloc.git |
| 8 | |
Jason Evans | 86abd0d | 2013-11-30 15:25:42 -0800 | [diff] [blame^] | 9 | * 3.5.0 (XXX) |
| 10 | |
| 11 | Bug fixes: |
| 12 | - Change the default private namespace prefix from empty to je_, and change |
| 13 | --with-private-namespace-prefix so that it prepends an additional prefix |
| 14 | rather than replacing je_. This reduces the likelihood of applications |
| 15 | which statically link jemalloc experiencing symbol name collisions. |
| 16 | |
Jason Evans | 0f7ba3f | 2013-10-20 19:40:09 -0700 | [diff] [blame] | 17 | * 3.4.1 (October 20, 2013) |
Jason Evans | ff08ef7 | 2013-10-19 21:41:10 -0700 | [diff] [blame] | 18 | |
| 19 | Bug fixes: |
Jason Evans | 7b65180 | 2013-10-20 14:09:54 -0700 | [diff] [blame] | 20 | - Fix a race in the "arenas.extend" mallctl that could cause memory corruption |
| 21 | of internal data structures and subsequent crashes. |
Jason Evans | dda90f5 | 2013-10-19 23:48:40 -0700 | [diff] [blame] | 22 | - Fix Valgrind integration flaws that caused Valgrind warnings about reads of |
| 23 | uninitialized memory in: |
| 24 | + arena chunk headers |
| 25 | + internal zero-initialized data structures (relevant to tcache and prof |
| 26 | code) |
Jason Evans | ff08ef7 | 2013-10-19 21:41:10 -0700 | [diff] [blame] | 27 | - Preserve errno during the first allocation. A readlink(2) call during |
| 28 | initialization fails unless /etc/malloc.conf exists, so errno was typically |
| 29 | set during the first allocation prior to this fix. |
| 30 | - Fix compilation warnings reported by gcc 4.8.1. |
| 31 | |
Jason Evans | 765cc2b | 2013-06-02 20:58:00 -0700 | [diff] [blame] | 32 | * 3.4.0 (June 2, 2013) |
| 33 | |
| 34 | This version is essentially a small bugfix release, but the addition of |
| 35 | aarch64 support requires that the minor version be incremented. |
| 36 | |
| 37 | Bug fixes: |
| 38 | - Fix race-triggered deadlocks in chunk_record(). These deadlocks were |
| 39 | typically triggered by multiple threads concurrently deallocating huge |
| 40 | objects. |
| 41 | |
| 42 | New features: |
| 43 | - Add support for the aarch64 architecture. |
| 44 | |
Jason Evans | 2298835 | 2013-03-06 11:11:17 -0800 | [diff] [blame] | 45 | * 3.3.1 (March 6, 2013) |
| 46 | |
| 47 | This version fixes bugs that are typically encountered only when utilizing |
| 48 | custom run-time options. |
Jason Evans | bbe29d3 | 2013-01-30 15:03:11 -0800 | [diff] [blame] | 49 | |
| 50 | Bug fixes: |
Jason Evans | 88c222c | 2013-02-06 11:59:30 -0800 | [diff] [blame] | 51 | - Fix a locking order bug that could cause deadlock during fork if heap |
| 52 | profiling were enabled. |
Jason Evans | a7a28c3 | 2013-01-31 16:53:58 -0800 | [diff] [blame] | 53 | - Fix a chunk recycling bug that could cause the allocator to lose track of |
Jason Evans | 765cc2b | 2013-06-02 20:58:00 -0700 | [diff] [blame] | 54 | whether a chunk was zeroed. On FreeBSD, NetBSD, and OS X, it could cause |
Jason Evans | a7a28c3 | 2013-01-31 16:53:58 -0800 | [diff] [blame] | 55 | corruption if allocating via sbrk(2) (unlikely unless running with the |
| 56 | "dss:primary" option specified). This was completely harmless on Linux |
| 57 | unless using mlockall(2) (and unlikely even then, unless the |
| 58 | --disable-munmap configure option or the "dss:primary" option was |
| 59 | specified). This regression was introduced in 3.1.0 by the |
| 60 | mlockall(2)/madvise(2) interaction fix. |
Jason Evans | bbe29d3 | 2013-01-30 15:03:11 -0800 | [diff] [blame] | 61 | - Fix TLS-related memory corruption that could occur during thread exit if the |
| 62 | thread never allocated memory. Only the quarantine and prof facilities were |
| 63 | susceptible. |
Jason Evans | d0e942e | 2013-01-31 14:42:41 -0800 | [diff] [blame] | 64 | - Fix two quarantine bugs: |
| 65 | + Internal reallocation of the quarantined object array leaked the old |
| 66 | array. |
| 67 | + Reallocation failure for internal reallocation of the quarantined object |
| 68 | array (very unlikely) resulted in memory corruption. |
Jason Evans | 0691275 | 2013-01-31 17:02:53 -0800 | [diff] [blame] | 69 | - Fix Valgrind integration to annotate all internally allocated memory in a |
| 70 | way that keeps Valgrind happy about internal data structure access. |
Jason Evans | 2298835 | 2013-03-06 11:11:17 -0800 | [diff] [blame] | 71 | - Fix building for s390 systems. |
Jason Evans | bbe29d3 | 2013-01-30 15:03:11 -0800 | [diff] [blame] | 72 | |
Jason Evans | b5681fb | 2013-01-22 22:45:09 -0800 | [diff] [blame] | 73 | * 3.3.0 (January 23, 2013) |
| 74 | |
| 75 | This version includes a few minor performance improvements in addition to the |
| 76 | listed new features and bug fixes. |
| 77 | |
| 78 | New features: |
| 79 | - Add clipping support to lg_chunk option processing. |
| 80 | - Add the --enable-ivsalloc option. |
| 81 | - Add the --without-export option. |
| 82 | - Add the --disable-zone-allocator option. |
Jason Evans | 6eb84fb | 2012-11-29 22:13:04 -0800 | [diff] [blame] | 83 | |
| 84 | Bug fixes: |
| 85 | - Fix "arenas.extend" mallctl to output the number of arenas. |
Jason Evans | a33488d | 2013-10-03 14:38:39 -0700 | [diff] [blame] | 86 | - Fix chunk_recycle() to unconditionally inform Valgrind that returned memory |
Jason Evans | 1271185 | 2012-12-12 10:12:18 -0800 | [diff] [blame] | 87 | is undefined. |
Jason Evans | b5681fb | 2013-01-22 22:45:09 -0800 | [diff] [blame] | 88 | - Fix build break on FreeBSD related to alloca.h. |
Jason Evans | 6eb84fb | 2012-11-29 22:13:04 -0800 | [diff] [blame] | 89 | |
Jason Evans | 556ddc7 | 2012-11-07 15:16:29 -0800 | [diff] [blame] | 90 | * 3.2.0 (November 9, 2012) |
| 91 | |
| 92 | In addition to a couple of bug fixes, this version modifies page run |
| 93 | allocation and dirty page purging algorithms in order to better control |
| 94 | page-level virtual memory fragmentation. |
Jason Evans | 12efefb | 2012-10-16 22:06:56 -0700 | [diff] [blame] | 95 | |
Jason Evans | e3d1306 | 2012-10-30 15:42:37 -0700 | [diff] [blame] | 96 | Incompatible changes: |
Jason Evans | 556ddc7 | 2012-11-07 15:16:29 -0800 | [diff] [blame] | 97 | - Change the "opt.lg_dirty_mult" default from 5 to 3 (32:1 to 8:1). |
Jason Evans | e3d1306 | 2012-10-30 15:42:37 -0700 | [diff] [blame] | 98 | |
Jason Evans | 12efefb | 2012-10-16 22:06:56 -0700 | [diff] [blame] | 99 | Bug fixes: |
| 100 | - Fix dss/mmap allocation precedence code to use recyclable mmap memory only |
| 101 | after primary dss allocation fails. |
Jason Evans | e3d1306 | 2012-10-30 15:42:37 -0700 | [diff] [blame] | 102 | - Fix deadlock in the "arenas.purge" mallctl. This regression was introduced |
| 103 | in 3.1.0 by the addition of the "arena.<i>.purge" mallctl. |
Jason Evans | 12efefb | 2012-10-16 22:06:56 -0700 | [diff] [blame] | 104 | |
Jason Evans | 2b592b0 | 2012-10-16 10:12:40 -0700 | [diff] [blame] | 105 | * 3.1.0 (October 16, 2012) |
Jason Evans | 3860eac | 2012-05-15 13:53:21 -0700 | [diff] [blame] | 106 | |
Jason Evans | 781fe75 | 2012-05-15 14:48:14 -0700 | [diff] [blame] | 107 | New features: |
| 108 | - Auto-detect whether running inside Valgrind, thus removing the need to |
| 109 | manually specify MALLOC_CONF=valgrind:true. |
Jason Evans | 2b592b0 | 2012-10-16 10:12:40 -0700 | [diff] [blame] | 110 | - Add the "arenas.extend" mallctl, which allows applications to create |
| 111 | manually managed arenas. |
| 112 | - Add the ALLOCM_ARENA() flag for {,r,d}allocm(). |
| 113 | - Add the "opt.dss", "arena.<i>.dss", and "stats.arenas.<i>.dss" mallctls, |
| 114 | which provide control over dss/mmap precedence. |
| 115 | - Add the "arena.<i>.purge" mallctl, which obsoletes "arenas.purge". |
| 116 | - Define LG_QUANTUM for hppa. |
Jason Evans | 781fe75 | 2012-05-15 14:48:14 -0700 | [diff] [blame] | 117 | |
Jason Evans | 174b70e | 2012-05-15 23:31:53 -0700 | [diff] [blame] | 118 | Incompatible changes: |
| 119 | - Disable tcache by default if running inside Valgrind, in order to avoid |
| 120 | making unallocated objects appear reachable to Valgrind. |
Jason Evans | 2b592b0 | 2012-10-16 10:12:40 -0700 | [diff] [blame] | 121 | - Drop const from malloc_usable_size() argument on Linux. |
Jason Evans | 174b70e | 2012-05-15 23:31:53 -0700 | [diff] [blame] | 122 | |
Jason Evans | 3860eac | 2012-05-15 13:53:21 -0700 | [diff] [blame] | 123 | Bug fixes: |
| 124 | - Fix heap profiling crash if sampled object is freed via realloc(p, 0). |
Jason Evans | 5c710ce | 2012-05-23 16:09:22 -0700 | [diff] [blame] | 125 | - Remove const from __*_hook variable declarations, so that glibc can modify |
| 126 | them during process forking. |
Jason Evans | 2b592b0 | 2012-10-16 10:12:40 -0700 | [diff] [blame] | 127 | - Fix mlockall(2)/madvise(2) interaction. |
| 128 | - Fix fork(2)-related deadlocks. |
| 129 | - Fix error return value for "thread.tcache.enabled" mallctl. |
Jason Evans | 3860eac | 2012-05-15 13:53:21 -0700 | [diff] [blame] | 130 | |
Jason Evans | cbb71ca | 2012-05-11 17:00:20 -0700 | [diff] [blame] | 131 | * 3.0.0 (May 11, 2012) |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 132 | |
| 133 | Although this version adds some major new features, the primary focus is on |
| 134 | internal code cleanup that facilitates maintainability and portability, most |
| 135 | of which is not reflected in the ChangeLog. This is the first release to |
| 136 | incorporate substantial contributions from numerous other developers, and the |
| 137 | result is a more broadly useful allocator (see the git revision history for |
| 138 | contribution details). Note that the license has been unified, thanks to |
| 139 | Facebook granting a license under the same terms as the other copyright |
| 140 | holders (see COPYING). |
| 141 | |
| 142 | New features: |
| 143 | - Implement Valgrind support, redzones, and quarantine. |
Jason Evans | 079687b | 2012-04-23 12:49:23 -0700 | [diff] [blame] | 144 | - Add support for additional platforms: |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 145 | + FreeBSD |
| 146 | + Mac OS X Lion |
Jason Evans | 40f514f | 2012-04-22 16:21:06 -0700 | [diff] [blame] | 147 | + MinGW |
Jason Evans | cbb71ca | 2012-05-11 17:00:20 -0700 | [diff] [blame] | 148 | + Windows (no support yet for replacing the system malloc) |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 149 | - Add support for additional architectures: |
| 150 | + MIPS |
| 151 | + SH4 |
| 152 | + Tilera |
| 153 | - Add support for cross compiling. |
| 154 | - Add nallocm(), which rounds a request size up to the nearest size class |
| 155 | without actually allocating. |
| 156 | - Implement aligned_alloc() (blame C11). |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 157 | - Add the "thread.tcache.enabled" mallctl. |
Jason Evans | 0b25fe7 | 2012-04-17 16:39:33 -0700 | [diff] [blame] | 158 | - Add the "opt.prof_final" mallctl. |
Jason Evans | 25a000e | 2012-04-17 15:49:30 -0700 | [diff] [blame] | 159 | - Update pprof (from gperftools 2.0). |
Jason Evans | cbb71ca | 2012-05-11 17:00:20 -0700 | [diff] [blame] | 160 | - Add the --with-mangling option. |
| 161 | - Add the --disable-experimental option. |
| 162 | - Add the --disable-munmap option, and make it the default on Linux. |
| 163 | - Add the --enable-mremap option, which disables use of mremap(2) by default. |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 164 | |
| 165 | Incompatible changes: |
| 166 | - Enable stats by default. |
| 167 | - Enable fill by default. |
| 168 | - Disable lazy locking by default. |
| 169 | - Rename the "tcache.flush" mallctl to "thread.tcache.flush". |
| 170 | - Rename the "arenas.pagesize" mallctl to "arenas.page". |
Jason Evans | 0b25fe7 | 2012-04-17 16:39:33 -0700 | [diff] [blame] | 171 | - Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB). |
| 172 | - Change the "opt.prof_accum" default from true to false. |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 173 | |
| 174 | Removed features: |
| 175 | - Remove the swap feature, including the "config.swap", "swap.avail", |
| 176 | "swap.prezeroed", "swap.nfds", and "swap.fds" mallctls. |
| 177 | - Remove highruns statistics, including the |
| 178 | "stats.arenas.<i>.bins.<j>.highruns" and |
| 179 | "stats.arenas.<i>.lruns.<j>.highruns" mallctls. |
| 180 | - As part of small size class refactoring, remove the "opt.lg_[qc]space_max", |
| 181 | "arenas.cacheline", "arenas.subpage", "arenas.[tqcs]space_{min,max}", and |
| 182 | "arenas.[tqcs]bins" mallctls. |
| 183 | - Remove the "arenas.chunksize" mallctl. |
| 184 | - Remove the "opt.lg_prof_tcmax" option. |
| 185 | - Remove the "opt.lg_prof_bt_max" option. |
| 186 | - Remove the "opt.lg_tcache_gc_sweep" option. |
| 187 | - Remove the --disable-tiny option, including the "config.tiny" mallctl. |
| 188 | - Remove the --enable-dynamic-page-shift configure option. |
| 189 | - Remove the --enable-sysv configure option. |
| 190 | |
| 191 | Bug fixes: |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 192 | - Fix a statistics-related bug in the "thread.arena" mallctl that could cause |
| 193 | invalid statistics and crashes. |
Jason Evans | 079687b | 2012-04-23 12:49:23 -0700 | [diff] [blame] | 194 | - Work around TLS deallocation via free() on Linux. This bug could cause |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 195 | write-after-free memory corruption. |
Jason Evans | 52386b2 | 2012-04-22 16:00:11 -0700 | [diff] [blame] | 196 | - Fix a potential deadlock that could occur during interval- and |
| 197 | growth-triggered heap profile dumps. |
Jason Evans | d8ceef6 | 2012-05-10 20:59:39 -0700 | [diff] [blame] | 198 | - Fix large calloc() zeroing bugs due to dropping chunk map unzeroed flags. |
Jason Evans | 8f0e0eb | 2012-04-21 13:33:48 -0700 | [diff] [blame] | 199 | - Fix chunk_alloc_dss() to stop claiming memory is zeroed. This bug could |
| 200 | cause memory corruption and crashes with --enable-dss specified. |
Jason Evans | 52386b2 | 2012-04-22 16:00:11 -0700 | [diff] [blame] | 201 | - Fix fork-related bugs that could cause deadlock in children between fork |
| 202 | and exec. |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 203 | - Fix malloc_stats_print() to honor 'b' and 'l' in the opts parameter. |
| 204 | - Fix realloc(p, 0) to act like free(p). |
| 205 | - Do not enforce minimum alignment in memalign(). |
| 206 | - Check for NULL pointer in malloc_usable_size(). |
Jason Evans | 52386b2 | 2012-04-22 16:00:11 -0700 | [diff] [blame] | 207 | - Fix an off-by-one heap profile statistics bug that could be observed in |
| 208 | interval- and growth-triggered heap profiles. |
Jason Evans | 6b9ed67 | 2012-04-25 13:12:46 -0700 | [diff] [blame] | 209 | - Fix the "epoch" mallctl to update cached stats even if the passed in epoch |
| 210 | is 0. |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 211 | - Fix bin->runcur management to fix a layout policy bug. This bug did not |
| 212 | affect correctness. |
| 213 | - Fix a bug in choose_arena_hard() that potentially caused more arenas to be |
| 214 | initialized than necessary. |
| 215 | - Add missing "opt.lg_tcache_max" mallctl implementation. |
| 216 | - Use glibc allocator hooks to make mixed allocator usage less likely. |
| 217 | - Fix build issues for --disable-tcache. |
Jason Evans | 918d6e2 | 2012-04-20 13:42:21 -0700 | [diff] [blame] | 218 | - Don't mangle pthread_create() when --with-private-namespace is specified. |
Jason Evans | 9ef7f5d | 2012-04-16 18:16:48 -0700 | [diff] [blame] | 219 | |
Jason Evans | b3bd885 | 2011-11-14 17:12:45 -0800 | [diff] [blame] | 220 | * 2.2.5 (November 14, 2011) |
| 221 | |
| 222 | Bug fixes: |
| 223 | - Fix huge_ralloc() race when using mremap(2). This is a serious bug that |
| 224 | could cause memory corruption and/or crashes. |
| 225 | - Fix huge_ralloc() to maintain chunk statistics. |
| 226 | - Fix malloc_stats_print(..., "a") output. |
| 227 | |
Jason Evans | ca9ee1a | 2011-11-05 21:46:23 -0700 | [diff] [blame] | 228 | * 2.2.4 (November 5, 2011) |
| 229 | |
| 230 | Bug fixes: |
| 231 | - Initialize arenas_tsd before using it. This bug existed for 2.2.[0-3], as |
| 232 | well as for --disable-tls builds in earlier releases. |
| 233 | - Do not assume a 4 KiB page size in test/rallocm.c. |
| 234 | |
Jason Evans | c67e4fd | 2011-08-31 15:19:13 -0700 | [diff] [blame] | 235 | * 2.2.3 (August 31, 2011) |
| 236 | |
| 237 | This version fixes numerous bugs related to heap profiling. |
| 238 | |
| 239 | Bug fixes: |
| 240 | - Fix a prof-related race condition. This bug could cause memory corruption, |
| 241 | but only occurred in non-default configurations (prof_accum:false). |
| 242 | - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is |
| 243 | excluded from backtraces). |
| 244 | - Fix a prof-related bug in realloc() (only triggered by OOM errors). |
| 245 | - Fix prof-related bugs in allocm() and rallocm(). |
| 246 | - Fix prof_tdata_cleanup() for --disable-tls builds. |
| 247 | - Fix a relative include path, to fix objdir builds. |
| 248 | |
Jason Evans | 4c48481 | 2011-07-30 16:59:13 -0700 | [diff] [blame] | 249 | * 2.2.2 (July 30, 2011) |
| 250 | |
| 251 | Bug fixes: |
| 252 | - Fix a build error for --disable-tcache. |
| 253 | - Fix assertions in arena_purge() (for real this time). |
| 254 | - Add the --with-private-namespace option. This is a workaround for symbol |
| 255 | conflicts that can inadvertently arise when using static libraries. |
| 256 | |
Jason Evans | 7d9ebea | 2011-03-30 15:01:08 -0700 | [diff] [blame] | 257 | * 2.2.1 (March 30, 2011) |
| 258 | |
| 259 | Bug fixes: |
| 260 | - Implement atomic operations for x86/x64. This fixes compilation failures |
| 261 | for versions of gcc that are still in wide use. |
| 262 | - Fix an assertion in arena_purge(). |
| 263 | |
Jason Evans | 4bcd987 | 2011-03-22 15:30:22 -0700 | [diff] [blame] | 264 | * 2.2.0 (March 22, 2011) |
| 265 | |
| 266 | This version incorporates several improvements to algorithms and data |
| 267 | structures that tend to reduce fragmentation and increase speed. |
| 268 | |
| 269 | New features: |
| 270 | - Add the "stats.cactive" mallctl. |
| 271 | - Update pprof (from google-perftools 1.7). |
| 272 | - Improve backtracing-related configuration logic, and add the |
| 273 | --disable-prof-libgcc option. |
| 274 | |
| 275 | Bug fixes: |
| 276 | - Change default symbol visibility from "internal", to "hidden", which |
| 277 | decreases the overhead of library-internal function calls. |
| 278 | - Fix symbol visibility so that it is also set on OS X. |
| 279 | - Fix a build dependency regression caused by the introduction of the .pic.o |
| 280 | suffix for PIC object files. |
| 281 | - Add missing checks for mutex initialization failures. |
| 282 | - Don't use libgcc-based backtracing except on x64, where it is known to work. |
| 283 | - Fix deadlocks on OS X that were due to memory allocation in |
| 284 | pthread_mutex_lock(). |
| 285 | - Heap profiling-specific fixes: |
| 286 | + Fix memory corruption due to integer overflow in small region index |
| 287 | computation, when using a small enough sample interval that profiling |
| 288 | context pointers are stored in small run headers. |
| 289 | + Fix a bootstrap ordering bug that only occurred with TLS disabled. |
| 290 | + Fix a rallocm() rsize bug. |
| 291 | + Fix error detection bugs for aligned memory allocation. |
| 292 | |
Jason Evans | 0e4d0d1 | 2011-03-14 16:41:03 -0700 | [diff] [blame] | 293 | * 2.1.3 (March 14, 2011) |
| 294 | |
| 295 | Bug fixes: |
| 296 | - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix |
| 297 | for OS X in 2.1.2). |
| 298 | - Fix a "thread.arena" mallctl bug. |
| 299 | - Fix a thread cache stats merging bug. |
| 300 | |
je | 6e56e5e | 2011-03-02 11:23:41 -0800 | [diff] [blame] | 301 | * 2.1.2 (March 2, 2011) |
| 302 | |
| 303 | Bug fixes: |
| 304 | - Fix "thread.{de,}allocatedp" mallctl for OS X. |
| 305 | - Add missing jemalloc.a to build system. |
| 306 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 307 | * 2.1.1 (January 31, 2011) |
Jason Evans | ada55b2 | 2011-01-31 20:08:56 -0800 | [diff] [blame] | 308 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 309 | Bug fixes: |
Jason Evans | ada55b2 | 2011-01-31 20:08:56 -0800 | [diff] [blame] | 310 | - Fix aligned huge reallocation (affected allocm()). |
| 311 | - Fix the ALLOCM_LG_ALIGN macro definition. |
| 312 | - Fix a heap dumping deadlock. |
| 313 | - Fix a "thread.arena" mallctl bug. |
| 314 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 315 | * 2.1.0 (December 3, 2010) |
Jason Evans | 0e8d3d2 | 2010-12-03 17:02:16 -0800 | [diff] [blame] | 316 | |
| 317 | This version incorporates some optimizations that can't quite be considered |
| 318 | bug fixes. |
| 319 | |
| 320 | New features: |
| 321 | - Use Linux's mremap(2) for huge object reallocation when possible. |
| 322 | - Avoid locking in mallctl*() when possible. |
| 323 | - Add the "thread.[de]allocatedp" mallctl's. |
| 324 | - Convert the manual page source from roff to DocBook, and generate both roff |
| 325 | and HTML manuals. |
| 326 | |
| 327 | Bug fixes: |
| 328 | - Fix a crash due to incorrect bootstrap ordering. This only impacted |
| 329 | --enable-debug --enable-dss configurations. |
| 330 | - Fix a minor statistics bug for mallctl("swap.avail", ...). |
| 331 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 332 | * 2.0.1 (October 29, 2010) |
Jason Evans | 53806fe | 2010-10-29 20:16:39 -0700 | [diff] [blame] | 333 | |
| 334 | Bug fixes: |
| 335 | - Fix a race condition in heap profiling that could cause undefined behavior |
Jason Evans | ada55b2 | 2011-01-31 20:08:56 -0800 | [diff] [blame] | 336 | if "opt.prof_accum" were disabled. |
Jason Evans | 53806fe | 2010-10-29 20:16:39 -0700 | [diff] [blame] | 337 | - Add missing mutex unlocks for some OOM error paths in the heap profiling |
| 338 | code. |
| 339 | - Fix a compilation error for non-C99 builds. |
| 340 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 341 | * 2.0.0 (October 24, 2010) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 342 | |
| 343 | This version focuses on the experimental *allocm() API, and on improved |
| 344 | run-time configuration/introspection. Nonetheless, numerous performance |
| 345 | improvements are also included. |
| 346 | |
| 347 | New features: |
Jason Evans | b059a53 | 2010-10-24 16:54:40 -0700 | [diff] [blame] | 348 | - Implement the experimental {,r,s,d}allocm() API, which provides a superset |
| 349 | of the functionality available via malloc(), calloc(), posix_memalign(), |
| 350 | realloc(), malloc_usable_size(), and free(). These functions can be used to |
| 351 | allocate/reallocate aligned zeroed memory, ask for optional extra memory |
| 352 | during reallocation, prevent object movement during reallocation, etc. |
| 353 | - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is |
| 354 | more human-readable, and more flexible. For example: |
| 355 | JEMALLOC_OPTIONS=AJP |
| 356 | is now: |
| 357 | MALLOC_CONF=abort:true,fill:true,stats_print:true |
| 358 | - Port to Apple OS X. Sponsored by Mozilla. |
| 359 | - Make it possible for the application to control thread-->arena mappings via |
| 360 | the "thread.arena" mallctl. |
| 361 | - Add compile-time support for all TLS-related functionality via pthreads TSD. |
| 362 | This is mainly of interest for OS X, which does not support TLS, but has a |
| 363 | TSD implementation with similar performance. |
| 364 | - Override memalign() and valloc() if they are provided by the system. |
| 365 | - Add the "arenas.purge" mallctl, which can be used to synchronously purge all |
| 366 | dirty unused pages. |
| 367 | - Make cumulative heap profiling data optional, so that it is possible to |
| 368 | limit the amount of memory consumed by heap profiling data structures. |
| 369 | - Add per thread allocation counters that can be accessed via the |
| 370 | "thread.allocated" and "thread.deallocated" mallctls. |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 371 | |
| 372 | Incompatible changes: |
Jason Evans | b059a53 | 2010-10-24 16:54:40 -0700 | [diff] [blame] | 373 | - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above). |
| 374 | - Increase default backtrace depth from 4 to 128 for heap profiling. |
| 375 | - Disable interval-based profile dumps by default. |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 376 | |
| 377 | Bug fixes: |
| 378 | - Remove bad assertions in fork handler functions. These assertions could |
| 379 | cause aborts for some combinations of configure settings. |
| 380 | - Fix strerror_r() usage to deal with non-standard semantics in GNU libc. |
| 381 | - Fix leak context reporting. This bug tended to cause the number of contexts |
| 382 | to be underreported (though the reported number of objects and bytes were |
| 383 | correct). |
| 384 | - Fix a realloc() bug for large in-place growing reallocation. This bug could |
| 385 | cause memory corruption, but it was hard to trigger. |
| 386 | - Fix an allocation bug for small allocations that could be triggered if |
| 387 | multiple threads raced to create a new run of backing pages. |
| 388 | - Enhance the heap profiler to trigger samples based on usable size, rather |
| 389 | than request size. |
| 390 | - Fix a heap profiling bug due to sometimes losing track of requested object |
| 391 | size for sampled objects. |
| 392 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 393 | * 1.0.3 (August 12, 2010) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 394 | |
| 395 | Bug fixes: |
| 396 | - Fix the libunwind-based implementation of stack backtracing (used for heap |
| 397 | profiling). This bug could cause zero-length backtraces to be reported. |
| 398 | - Add a missing mutex unlock in library initialization code. If multiple |
| 399 | threads raced to initialize malloc, some of them could end up permanently |
| 400 | blocked. |
| 401 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 402 | * 1.0.2 (May 11, 2010) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 403 | |
| 404 | Bug fixes: |
| 405 | - Fix junk filling of large objects, which could cause memory corruption. |
| 406 | - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual |
| 407 | memory limits could cause swap file configuration to fail. Contributed by |
| 408 | Jordan DeLong. |
| 409 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 410 | * 1.0.1 (April 14, 2010) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 411 | |
| 412 | Bug fixes: |
| 413 | - Fix compilation when --enable-fill is specified. |
| 414 | - Fix threads-related profiling bugs that affected accuracy and caused memory |
| 415 | to be leaked during thread exit. |
| 416 | - Fix dirty page purging race conditions that could cause crashes. |
| 417 | - Fix crash in tcache flushing code during thread destruction. |
| 418 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 419 | * 1.0.0 (April 11, 2010) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 420 | |
| 421 | This release focuses on speed and run-time introspection. Numerous |
| 422 | algorithmic improvements make this release substantially faster than its |
| 423 | predecessors. |
| 424 | |
| 425 | New features: |
| 426 | - Implement autoconf-based configuration system. |
| 427 | - Add mallctl*(), for the purposes of introspection and run-time |
| 428 | configuration. |
| 429 | - Make it possible for the application to manually flush a thread's cache, via |
| 430 | the "tcache.flush" mallctl. |
| 431 | - Base maximum dirty page count on proportion of active memory. |
| 432 | - Compute various addtional run-time statistics, including per size class |
| 433 | statistics for large objects. |
| 434 | - Expose malloc_stats_print(), which can be called repeatedly by the |
| 435 | application. |
| 436 | - Simplify the malloc_message() signature to only take one string argument, |
| 437 | and incorporate an opaque data pointer argument for use by the application |
| 438 | in combination with malloc_stats_print(). |
| 439 | - Add support for allocation backed by one or more swap files, and allow the |
| 440 | application to disable over-commit if swap files are in use. |
| 441 | - Implement allocation profiling and leak checking. |
| 442 | |
| 443 | Removed features: |
| 444 | - Remove the dynamic arena rebalancing code, since thread-specific caching |
| 445 | reduces its utility. |
| 446 | |
| 447 | Bug fixes: |
| 448 | - Modify chunk allocation to work when address space layout randomization |
| 449 | (ASLR) is in use. |
| 450 | - Fix thread cleanup bugs related to TLS destruction. |
| 451 | - Handle 0-size allocation requests in posix_memalign(). |
| 452 | - Fix a chunk leak. The leaked chunks were never touched, so this impacted |
| 453 | virtual memory usage, but not physical memory usage. |
| 454 | |
Jason Evans | 6369286 | 2011-02-07 22:48:35 -0800 | [diff] [blame] | 455 | * linux_2008082[78]a (August 27/28, 2008) |
Jason Evans | 379f847 | 2010-10-24 16:18:29 -0700 | [diff] [blame] | 456 | |
| 457 | These snapshot releases are the simple result of incorporating Linux-specific |
| 458 | support into the FreeBSD malloc sources. |
| 459 | |
| 460 | -------------------------------------------------------------------------------- |
| 461 | vim:filetype=text:textwidth=80 |