blob: 0ae4f118a14d386acc02110229a9d801a96b6693 [file] [log] [blame]
Jason Evans379f8472010-10-24 16:18:29 -07001Following are change highlights associated with official releases. Important
2bug fixes are all mentioned, but internal enhancements are omitted here for
3brevity (even though they are more fun to write about). Much more detail can be
4found 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 Evans2b592b02012-10-16 10:12:40 -07009* 3.1.0 (October 16, 2012)
Jason Evans3860eac2012-05-15 13:53:21 -070010
Jason Evans781fe752012-05-15 14:48:14 -070011 New features:
12 - Auto-detect whether running inside Valgrind, thus removing the need to
13 manually specify MALLOC_CONF=valgrind:true.
Jason Evans2b592b02012-10-16 10:12:40 -070014 - Add the "arenas.extend" mallctl, which allows applications to create
15 manually managed arenas.
16 - Add the ALLOCM_ARENA() flag for {,r,d}allocm().
17 - Add the "opt.dss", "arena.<i>.dss", and "stats.arenas.<i>.dss" mallctls,
18 which provide control over dss/mmap precedence.
19 - Add the "arena.<i>.purge" mallctl, which obsoletes "arenas.purge".
20 - Define LG_QUANTUM for hppa.
Jason Evans781fe752012-05-15 14:48:14 -070021
Jason Evans174b70e2012-05-15 23:31:53 -070022 Incompatible changes:
23 - Disable tcache by default if running inside Valgrind, in order to avoid
24 making unallocated objects appear reachable to Valgrind.
Jason Evans2b592b02012-10-16 10:12:40 -070025 - Drop const from malloc_usable_size() argument on Linux.
Jason Evans174b70e2012-05-15 23:31:53 -070026
Jason Evans3860eac2012-05-15 13:53:21 -070027 Bug fixes:
28 - Fix heap profiling crash if sampled object is freed via realloc(p, 0).
Jason Evans5c710ce2012-05-23 16:09:22 -070029 - Remove const from __*_hook variable declarations, so that glibc can modify
30 them during process forking.
Jason Evans2b592b02012-10-16 10:12:40 -070031 - Fix mlockall(2)/madvise(2) interaction.
32 - Fix fork(2)-related deadlocks.
33 - Fix error return value for "thread.tcache.enabled" mallctl.
Jason Evans3860eac2012-05-15 13:53:21 -070034
Jason Evanscbb71ca2012-05-11 17:00:20 -070035* 3.0.0 (May 11, 2012)
Jason Evans9ef7f5d2012-04-16 18:16:48 -070036
37 Although this version adds some major new features, the primary focus is on
38 internal code cleanup that facilitates maintainability and portability, most
39 of which is not reflected in the ChangeLog. This is the first release to
40 incorporate substantial contributions from numerous other developers, and the
41 result is a more broadly useful allocator (see the git revision history for
42 contribution details). Note that the license has been unified, thanks to
43 Facebook granting a license under the same terms as the other copyright
44 holders (see COPYING).
45
46 New features:
47 - Implement Valgrind support, redzones, and quarantine.
Jason Evans079687b2012-04-23 12:49:23 -070048 - Add support for additional platforms:
Jason Evans9ef7f5d2012-04-16 18:16:48 -070049 + FreeBSD
50 + Mac OS X Lion
Jason Evans40f514f2012-04-22 16:21:06 -070051 + MinGW
Jason Evanscbb71ca2012-05-11 17:00:20 -070052 + Windows (no support yet for replacing the system malloc)
Jason Evans9ef7f5d2012-04-16 18:16:48 -070053 - Add support for additional architectures:
54 + MIPS
55 + SH4
56 + Tilera
57 - Add support for cross compiling.
58 - Add nallocm(), which rounds a request size up to the nearest size class
59 without actually allocating.
60 - Implement aligned_alloc() (blame C11).
Jason Evans9ef7f5d2012-04-16 18:16:48 -070061 - Add the "thread.tcache.enabled" mallctl.
Jason Evans0b25fe72012-04-17 16:39:33 -070062 - Add the "opt.prof_final" mallctl.
Jason Evans25a000e2012-04-17 15:49:30 -070063 - Update pprof (from gperftools 2.0).
Jason Evanscbb71ca2012-05-11 17:00:20 -070064 - Add the --with-mangling option.
65 - Add the --disable-experimental option.
66 - Add the --disable-munmap option, and make it the default on Linux.
67 - Add the --enable-mremap option, which disables use of mremap(2) by default.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070068
69 Incompatible changes:
70 - Enable stats by default.
71 - Enable fill by default.
72 - Disable lazy locking by default.
73 - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
74 - Rename the "arenas.pagesize" mallctl to "arenas.page".
Jason Evans0b25fe72012-04-17 16:39:33 -070075 - Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB).
76 - Change the "opt.prof_accum" default from true to false.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070077
78 Removed features:
79 - Remove the swap feature, including the "config.swap", "swap.avail",
80 "swap.prezeroed", "swap.nfds", and "swap.fds" mallctls.
81 - Remove highruns statistics, including the
82 "stats.arenas.<i>.bins.<j>.highruns" and
83 "stats.arenas.<i>.lruns.<j>.highruns" mallctls.
84 - As part of small size class refactoring, remove the "opt.lg_[qc]space_max",
85 "arenas.cacheline", "arenas.subpage", "arenas.[tqcs]space_{min,max}", and
86 "arenas.[tqcs]bins" mallctls.
87 - Remove the "arenas.chunksize" mallctl.
88 - Remove the "opt.lg_prof_tcmax" option.
89 - Remove the "opt.lg_prof_bt_max" option.
90 - Remove the "opt.lg_tcache_gc_sweep" option.
91 - Remove the --disable-tiny option, including the "config.tiny" mallctl.
92 - Remove the --enable-dynamic-page-shift configure option.
93 - Remove the --enable-sysv configure option.
94
95 Bug fixes:
Jason Evans9ef7f5d2012-04-16 18:16:48 -070096 - Fix a statistics-related bug in the "thread.arena" mallctl that could cause
97 invalid statistics and crashes.
Jason Evans079687b2012-04-23 12:49:23 -070098 - Work around TLS deallocation via free() on Linux. This bug could cause
Jason Evans9ef7f5d2012-04-16 18:16:48 -070099 write-after-free memory corruption.
Jason Evans52386b22012-04-22 16:00:11 -0700100 - Fix a potential deadlock that could occur during interval- and
101 growth-triggered heap profile dumps.
Jason Evansd8ceef62012-05-10 20:59:39 -0700102 - Fix large calloc() zeroing bugs due to dropping chunk map unzeroed flags.
Jason Evans8f0e0eb2012-04-21 13:33:48 -0700103 - Fix chunk_alloc_dss() to stop claiming memory is zeroed. This bug could
104 cause memory corruption and crashes with --enable-dss specified.
Jason Evans52386b22012-04-22 16:00:11 -0700105 - Fix fork-related bugs that could cause deadlock in children between fork
106 and exec.
Jason Evans9ef7f5d2012-04-16 18:16:48 -0700107 - Fix malloc_stats_print() to honor 'b' and 'l' in the opts parameter.
108 - Fix realloc(p, 0) to act like free(p).
109 - Do not enforce minimum alignment in memalign().
110 - Check for NULL pointer in malloc_usable_size().
Jason Evans52386b22012-04-22 16:00:11 -0700111 - Fix an off-by-one heap profile statistics bug that could be observed in
112 interval- and growth-triggered heap profiles.
Jason Evans6b9ed672012-04-25 13:12:46 -0700113 - Fix the "epoch" mallctl to update cached stats even if the passed in epoch
114 is 0.
Jason Evans9ef7f5d2012-04-16 18:16:48 -0700115 - Fix bin->runcur management to fix a layout policy bug. This bug did not
116 affect correctness.
117 - Fix a bug in choose_arena_hard() that potentially caused more arenas to be
118 initialized than necessary.
119 - Add missing "opt.lg_tcache_max" mallctl implementation.
120 - Use glibc allocator hooks to make mixed allocator usage less likely.
121 - Fix build issues for --disable-tcache.
Jason Evans918d6e22012-04-20 13:42:21 -0700122 - Don't mangle pthread_create() when --with-private-namespace is specified.
Jason Evans9ef7f5d2012-04-16 18:16:48 -0700123
Jason Evansb3bd8852011-11-14 17:12:45 -0800124* 2.2.5 (November 14, 2011)
125
126 Bug fixes:
127 - Fix huge_ralloc() race when using mremap(2). This is a serious bug that
128 could cause memory corruption and/or crashes.
129 - Fix huge_ralloc() to maintain chunk statistics.
130 - Fix malloc_stats_print(..., "a") output.
131
Jason Evansca9ee1a2011-11-05 21:46:23 -0700132* 2.2.4 (November 5, 2011)
133
134 Bug fixes:
135 - Initialize arenas_tsd before using it. This bug existed for 2.2.[0-3], as
136 well as for --disable-tls builds in earlier releases.
137 - Do not assume a 4 KiB page size in test/rallocm.c.
138
Jason Evansc67e4fd2011-08-31 15:19:13 -0700139* 2.2.3 (August 31, 2011)
140
141 This version fixes numerous bugs related to heap profiling.
142
143 Bug fixes:
144 - Fix a prof-related race condition. This bug could cause memory corruption,
145 but only occurred in non-default configurations (prof_accum:false).
146 - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is
147 excluded from backtraces).
148 - Fix a prof-related bug in realloc() (only triggered by OOM errors).
149 - Fix prof-related bugs in allocm() and rallocm().
150 - Fix prof_tdata_cleanup() for --disable-tls builds.
151 - Fix a relative include path, to fix objdir builds.
152
Jason Evans4c484812011-07-30 16:59:13 -0700153* 2.2.2 (July 30, 2011)
154
155 Bug fixes:
156 - Fix a build error for --disable-tcache.
157 - Fix assertions in arena_purge() (for real this time).
158 - Add the --with-private-namespace option. This is a workaround for symbol
159 conflicts that can inadvertently arise when using static libraries.
160
Jason Evans7d9ebea2011-03-30 15:01:08 -0700161* 2.2.1 (March 30, 2011)
162
163 Bug fixes:
164 - Implement atomic operations for x86/x64. This fixes compilation failures
165 for versions of gcc that are still in wide use.
166 - Fix an assertion in arena_purge().
167
Jason Evans4bcd9872011-03-22 15:30:22 -0700168* 2.2.0 (March 22, 2011)
169
170 This version incorporates several improvements to algorithms and data
171 structures that tend to reduce fragmentation and increase speed.
172
173 New features:
174 - Add the "stats.cactive" mallctl.
175 - Update pprof (from google-perftools 1.7).
176 - Improve backtracing-related configuration logic, and add the
177 --disable-prof-libgcc option.
178
179 Bug fixes:
180 - Change default symbol visibility from "internal", to "hidden", which
181 decreases the overhead of library-internal function calls.
182 - Fix symbol visibility so that it is also set on OS X.
183 - Fix a build dependency regression caused by the introduction of the .pic.o
184 suffix for PIC object files.
185 - Add missing checks for mutex initialization failures.
186 - Don't use libgcc-based backtracing except on x64, where it is known to work.
187 - Fix deadlocks on OS X that were due to memory allocation in
188 pthread_mutex_lock().
189 - Heap profiling-specific fixes:
190 + Fix memory corruption due to integer overflow in small region index
191 computation, when using a small enough sample interval that profiling
192 context pointers are stored in small run headers.
193 + Fix a bootstrap ordering bug that only occurred with TLS disabled.
194 + Fix a rallocm() rsize bug.
195 + Fix error detection bugs for aligned memory allocation.
196
Jason Evans0e4d0d12011-03-14 16:41:03 -0700197* 2.1.3 (March 14, 2011)
198
199 Bug fixes:
200 - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix
201 for OS X in 2.1.2).
202 - Fix a "thread.arena" mallctl bug.
203 - Fix a thread cache stats merging bug.
204
je6e56e5e2011-03-02 11:23:41 -0800205* 2.1.2 (March 2, 2011)
206
207 Bug fixes:
208 - Fix "thread.{de,}allocatedp" mallctl for OS X.
209 - Add missing jemalloc.a to build system.
210
Jason Evans63692862011-02-07 22:48:35 -0800211* 2.1.1 (January 31, 2011)
Jason Evansada55b22011-01-31 20:08:56 -0800212
Jason Evans63692862011-02-07 22:48:35 -0800213 Bug fixes:
Jason Evansada55b22011-01-31 20:08:56 -0800214 - Fix aligned huge reallocation (affected allocm()).
215 - Fix the ALLOCM_LG_ALIGN macro definition.
216 - Fix a heap dumping deadlock.
217 - Fix a "thread.arena" mallctl bug.
218
Jason Evans63692862011-02-07 22:48:35 -0800219* 2.1.0 (December 3, 2010)
Jason Evans0e8d3d22010-12-03 17:02:16 -0800220
221 This version incorporates some optimizations that can't quite be considered
222 bug fixes.
223
224 New features:
225 - Use Linux's mremap(2) for huge object reallocation when possible.
226 - Avoid locking in mallctl*() when possible.
227 - Add the "thread.[de]allocatedp" mallctl's.
228 - Convert the manual page source from roff to DocBook, and generate both roff
229 and HTML manuals.
230
231 Bug fixes:
232 - Fix a crash due to incorrect bootstrap ordering. This only impacted
233 --enable-debug --enable-dss configurations.
234 - Fix a minor statistics bug for mallctl("swap.avail", ...).
235
Jason Evans63692862011-02-07 22:48:35 -0800236* 2.0.1 (October 29, 2010)
Jason Evans53806fe2010-10-29 20:16:39 -0700237
238 Bug fixes:
239 - Fix a race condition in heap profiling that could cause undefined behavior
Jason Evansada55b22011-01-31 20:08:56 -0800240 if "opt.prof_accum" were disabled.
Jason Evans53806fe2010-10-29 20:16:39 -0700241 - Add missing mutex unlocks for some OOM error paths in the heap profiling
242 code.
243 - Fix a compilation error for non-C99 builds.
244
Jason Evans63692862011-02-07 22:48:35 -0800245* 2.0.0 (October 24, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700246
247 This version focuses on the experimental *allocm() API, and on improved
248 run-time configuration/introspection. Nonetheless, numerous performance
249 improvements are also included.
250
251 New features:
Jason Evansb059a532010-10-24 16:54:40 -0700252 - Implement the experimental {,r,s,d}allocm() API, which provides a superset
253 of the functionality available via malloc(), calloc(), posix_memalign(),
254 realloc(), malloc_usable_size(), and free(). These functions can be used to
255 allocate/reallocate aligned zeroed memory, ask for optional extra memory
256 during reallocation, prevent object movement during reallocation, etc.
257 - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is
258 more human-readable, and more flexible. For example:
259 JEMALLOC_OPTIONS=AJP
260 is now:
261 MALLOC_CONF=abort:true,fill:true,stats_print:true
262 - Port to Apple OS X. Sponsored by Mozilla.
263 - Make it possible for the application to control thread-->arena mappings via
264 the "thread.arena" mallctl.
265 - Add compile-time support for all TLS-related functionality via pthreads TSD.
266 This is mainly of interest for OS X, which does not support TLS, but has a
267 TSD implementation with similar performance.
268 - Override memalign() and valloc() if they are provided by the system.
269 - Add the "arenas.purge" mallctl, which can be used to synchronously purge all
270 dirty unused pages.
271 - Make cumulative heap profiling data optional, so that it is possible to
272 limit the amount of memory consumed by heap profiling data structures.
273 - Add per thread allocation counters that can be accessed via the
274 "thread.allocated" and "thread.deallocated" mallctls.
Jason Evans379f8472010-10-24 16:18:29 -0700275
276 Incompatible changes:
Jason Evansb059a532010-10-24 16:54:40 -0700277 - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above).
278 - Increase default backtrace depth from 4 to 128 for heap profiling.
279 - Disable interval-based profile dumps by default.
Jason Evans379f8472010-10-24 16:18:29 -0700280
281 Bug fixes:
282 - Remove bad assertions in fork handler functions. These assertions could
283 cause aborts for some combinations of configure settings.
284 - Fix strerror_r() usage to deal with non-standard semantics in GNU libc.
285 - Fix leak context reporting. This bug tended to cause the number of contexts
286 to be underreported (though the reported number of objects and bytes were
287 correct).
288 - Fix a realloc() bug for large in-place growing reallocation. This bug could
289 cause memory corruption, but it was hard to trigger.
290 - Fix an allocation bug for small allocations that could be triggered if
291 multiple threads raced to create a new run of backing pages.
292 - Enhance the heap profiler to trigger samples based on usable size, rather
293 than request size.
294 - Fix a heap profiling bug due to sometimes losing track of requested object
295 size for sampled objects.
296
Jason Evans63692862011-02-07 22:48:35 -0800297* 1.0.3 (August 12, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700298
299 Bug fixes:
300 - Fix the libunwind-based implementation of stack backtracing (used for heap
301 profiling). This bug could cause zero-length backtraces to be reported.
302 - Add a missing mutex unlock in library initialization code. If multiple
303 threads raced to initialize malloc, some of them could end up permanently
304 blocked.
305
Jason Evans63692862011-02-07 22:48:35 -0800306* 1.0.2 (May 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700307
308 Bug fixes:
309 - Fix junk filling of large objects, which could cause memory corruption.
310 - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual
311 memory limits could cause swap file configuration to fail. Contributed by
312 Jordan DeLong.
313
Jason Evans63692862011-02-07 22:48:35 -0800314* 1.0.1 (April 14, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700315
316 Bug fixes:
317 - Fix compilation when --enable-fill is specified.
318 - Fix threads-related profiling bugs that affected accuracy and caused memory
319 to be leaked during thread exit.
320 - Fix dirty page purging race conditions that could cause crashes.
321 - Fix crash in tcache flushing code during thread destruction.
322
Jason Evans63692862011-02-07 22:48:35 -0800323* 1.0.0 (April 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700324
325 This release focuses on speed and run-time introspection. Numerous
326 algorithmic improvements make this release substantially faster than its
327 predecessors.
328
329 New features:
330 - Implement autoconf-based configuration system.
331 - Add mallctl*(), for the purposes of introspection and run-time
332 configuration.
333 - Make it possible for the application to manually flush a thread's cache, via
334 the "tcache.flush" mallctl.
335 - Base maximum dirty page count on proportion of active memory.
336 - Compute various addtional run-time statistics, including per size class
337 statistics for large objects.
338 - Expose malloc_stats_print(), which can be called repeatedly by the
339 application.
340 - Simplify the malloc_message() signature to only take one string argument,
341 and incorporate an opaque data pointer argument for use by the application
342 in combination with malloc_stats_print().
343 - Add support for allocation backed by one or more swap files, and allow the
344 application to disable over-commit if swap files are in use.
345 - Implement allocation profiling and leak checking.
346
347 Removed features:
348 - Remove the dynamic arena rebalancing code, since thread-specific caching
349 reduces its utility.
350
351 Bug fixes:
352 - Modify chunk allocation to work when address space layout randomization
353 (ASLR) is in use.
354 - Fix thread cleanup bugs related to TLS destruction.
355 - Handle 0-size allocation requests in posix_memalign().
356 - Fix a chunk leak. The leaked chunks were never touched, so this impacted
357 virtual memory usage, but not physical memory usage.
358
Jason Evans63692862011-02-07 22:48:35 -0800359* linux_2008082[78]a (August 27/28, 2008)
Jason Evans379f8472010-10-24 16:18:29 -0700360
361 These snapshot releases are the simple result of incorporating Linux-specific
362 support into the FreeBSD malloc sources.
363
364--------------------------------------------------------------------------------
365vim:filetype=text:textwidth=80