blob: 66f1d69121a11da9071b0591296eecb0dc8687fa [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 Evans3860eac2012-05-15 13:53:21 -07009* 3.x.x (XXX not yet released)
10
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.
14
Jason Evans174b70e2012-05-15 23:31:53 -070015 Incompatible changes:
16 - Disable tcache by default if running inside Valgrind, in order to avoid
17 making unallocated objects appear reachable to Valgrind.
18
Jason Evans3860eac2012-05-15 13:53:21 -070019 Bug fixes:
20 - Fix heap profiling crash if sampled object is freed via realloc(p, 0).
Jason Evans5c710ce2012-05-23 16:09:22 -070021 - Remove const from __*_hook variable declarations, so that glibc can modify
22 them during process forking.
Jason Evans3860eac2012-05-15 13:53:21 -070023
Jason Evanscbb71ca2012-05-11 17:00:20 -070024* 3.0.0 (May 11, 2012)
Jason Evans9ef7f5d2012-04-16 18:16:48 -070025
26 Although this version adds some major new features, the primary focus is on
27 internal code cleanup that facilitates maintainability and portability, most
28 of which is not reflected in the ChangeLog. This is the first release to
29 incorporate substantial contributions from numerous other developers, and the
30 result is a more broadly useful allocator (see the git revision history for
31 contribution details). Note that the license has been unified, thanks to
32 Facebook granting a license under the same terms as the other copyright
33 holders (see COPYING).
34
35 New features:
36 - Implement Valgrind support, redzones, and quarantine.
Jason Evans079687b2012-04-23 12:49:23 -070037 - Add support for additional platforms:
Jason Evans9ef7f5d2012-04-16 18:16:48 -070038 + FreeBSD
39 + Mac OS X Lion
Jason Evans40f514f2012-04-22 16:21:06 -070040 + MinGW
Jason Evanscbb71ca2012-05-11 17:00:20 -070041 + Windows (no support yet for replacing the system malloc)
Jason Evans9ef7f5d2012-04-16 18:16:48 -070042 - Add support for additional architectures:
43 + MIPS
44 + SH4
45 + Tilera
46 - Add support for cross compiling.
47 - Add nallocm(), which rounds a request size up to the nearest size class
48 without actually allocating.
49 - Implement aligned_alloc() (blame C11).
Jason Evans9ef7f5d2012-04-16 18:16:48 -070050 - Add the "thread.tcache.enabled" mallctl.
Jason Evans0b25fe72012-04-17 16:39:33 -070051 - Add the "opt.prof_final" mallctl.
Jason Evans25a000e2012-04-17 15:49:30 -070052 - Update pprof (from gperftools 2.0).
Jason Evanscbb71ca2012-05-11 17:00:20 -070053 - Add the --with-mangling option.
54 - Add the --disable-experimental option.
55 - Add the --disable-munmap option, and make it the default on Linux.
56 - Add the --enable-mremap option, which disables use of mremap(2) by default.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070057
58 Incompatible changes:
59 - Enable stats by default.
60 - Enable fill by default.
61 - Disable lazy locking by default.
62 - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
63 - Rename the "arenas.pagesize" mallctl to "arenas.page".
Jason Evans0b25fe72012-04-17 16:39:33 -070064 - Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB).
65 - Change the "opt.prof_accum" default from true to false.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070066
67 Removed features:
68 - Remove the swap feature, including the "config.swap", "swap.avail",
69 "swap.prezeroed", "swap.nfds", and "swap.fds" mallctls.
70 - Remove highruns statistics, including the
71 "stats.arenas.<i>.bins.<j>.highruns" and
72 "stats.arenas.<i>.lruns.<j>.highruns" mallctls.
73 - As part of small size class refactoring, remove the "opt.lg_[qc]space_max",
74 "arenas.cacheline", "arenas.subpage", "arenas.[tqcs]space_{min,max}", and
75 "arenas.[tqcs]bins" mallctls.
76 - Remove the "arenas.chunksize" mallctl.
77 - Remove the "opt.lg_prof_tcmax" option.
78 - Remove the "opt.lg_prof_bt_max" option.
79 - Remove the "opt.lg_tcache_gc_sweep" option.
80 - Remove the --disable-tiny option, including the "config.tiny" mallctl.
81 - Remove the --enable-dynamic-page-shift configure option.
82 - Remove the --enable-sysv configure option.
83
84 Bug fixes:
Jason Evans9ef7f5d2012-04-16 18:16:48 -070085 - Fix a statistics-related bug in the "thread.arena" mallctl that could cause
86 invalid statistics and crashes.
Jason Evans079687b2012-04-23 12:49:23 -070087 - Work around TLS deallocation via free() on Linux. This bug could cause
Jason Evans9ef7f5d2012-04-16 18:16:48 -070088 write-after-free memory corruption.
Jason Evans52386b22012-04-22 16:00:11 -070089 - Fix a potential deadlock that could occur during interval- and
90 growth-triggered heap profile dumps.
Jason Evansd8ceef62012-05-10 20:59:39 -070091 - Fix large calloc() zeroing bugs due to dropping chunk map unzeroed flags.
Jason Evans8f0e0eb2012-04-21 13:33:48 -070092 - Fix chunk_alloc_dss() to stop claiming memory is zeroed. This bug could
93 cause memory corruption and crashes with --enable-dss specified.
Jason Evans52386b22012-04-22 16:00:11 -070094 - Fix fork-related bugs that could cause deadlock in children between fork
95 and exec.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070096 - Fix malloc_stats_print() to honor 'b' and 'l' in the opts parameter.
97 - Fix realloc(p, 0) to act like free(p).
98 - Do not enforce minimum alignment in memalign().
99 - Check for NULL pointer in malloc_usable_size().
Jason Evans52386b22012-04-22 16:00:11 -0700100 - Fix an off-by-one heap profile statistics bug that could be observed in
101 interval- and growth-triggered heap profiles.
Jason Evans6b9ed672012-04-25 13:12:46 -0700102 - Fix the "epoch" mallctl to update cached stats even if the passed in epoch
103 is 0.
Jason Evans9ef7f5d2012-04-16 18:16:48 -0700104 - Fix bin->runcur management to fix a layout policy bug. This bug did not
105 affect correctness.
106 - Fix a bug in choose_arena_hard() that potentially caused more arenas to be
107 initialized than necessary.
108 - Add missing "opt.lg_tcache_max" mallctl implementation.
109 - Use glibc allocator hooks to make mixed allocator usage less likely.
110 - Fix build issues for --disable-tcache.
Jason Evans918d6e22012-04-20 13:42:21 -0700111 - Don't mangle pthread_create() when --with-private-namespace is specified.
Jason Evans9ef7f5d2012-04-16 18:16:48 -0700112
Jason Evansb3bd8852011-11-14 17:12:45 -0800113* 2.2.5 (November 14, 2011)
114
115 Bug fixes:
116 - Fix huge_ralloc() race when using mremap(2). This is a serious bug that
117 could cause memory corruption and/or crashes.
118 - Fix huge_ralloc() to maintain chunk statistics.
119 - Fix malloc_stats_print(..., "a") output.
120
Jason Evansca9ee1a2011-11-05 21:46:23 -0700121* 2.2.4 (November 5, 2011)
122
123 Bug fixes:
124 - Initialize arenas_tsd before using it. This bug existed for 2.2.[0-3], as
125 well as for --disable-tls builds in earlier releases.
126 - Do not assume a 4 KiB page size in test/rallocm.c.
127
Jason Evansc67e4fd2011-08-31 15:19:13 -0700128* 2.2.3 (August 31, 2011)
129
130 This version fixes numerous bugs related to heap profiling.
131
132 Bug fixes:
133 - Fix a prof-related race condition. This bug could cause memory corruption,
134 but only occurred in non-default configurations (prof_accum:false).
135 - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is
136 excluded from backtraces).
137 - Fix a prof-related bug in realloc() (only triggered by OOM errors).
138 - Fix prof-related bugs in allocm() and rallocm().
139 - Fix prof_tdata_cleanup() for --disable-tls builds.
140 - Fix a relative include path, to fix objdir builds.
141
Jason Evans4c484812011-07-30 16:59:13 -0700142* 2.2.2 (July 30, 2011)
143
144 Bug fixes:
145 - Fix a build error for --disable-tcache.
146 - Fix assertions in arena_purge() (for real this time).
147 - Add the --with-private-namespace option. This is a workaround for symbol
148 conflicts that can inadvertently arise when using static libraries.
149
Jason Evans7d9ebea2011-03-30 15:01:08 -0700150* 2.2.1 (March 30, 2011)
151
152 Bug fixes:
153 - Implement atomic operations for x86/x64. This fixes compilation failures
154 for versions of gcc that are still in wide use.
155 - Fix an assertion in arena_purge().
156
Jason Evans4bcd9872011-03-22 15:30:22 -0700157* 2.2.0 (March 22, 2011)
158
159 This version incorporates several improvements to algorithms and data
160 structures that tend to reduce fragmentation and increase speed.
161
162 New features:
163 - Add the "stats.cactive" mallctl.
164 - Update pprof (from google-perftools 1.7).
165 - Improve backtracing-related configuration logic, and add the
166 --disable-prof-libgcc option.
167
168 Bug fixes:
169 - Change default symbol visibility from "internal", to "hidden", which
170 decreases the overhead of library-internal function calls.
171 - Fix symbol visibility so that it is also set on OS X.
172 - Fix a build dependency regression caused by the introduction of the .pic.o
173 suffix for PIC object files.
174 - Add missing checks for mutex initialization failures.
175 - Don't use libgcc-based backtracing except on x64, where it is known to work.
176 - Fix deadlocks on OS X that were due to memory allocation in
177 pthread_mutex_lock().
178 - Heap profiling-specific fixes:
179 + Fix memory corruption due to integer overflow in small region index
180 computation, when using a small enough sample interval that profiling
181 context pointers are stored in small run headers.
182 + Fix a bootstrap ordering bug that only occurred with TLS disabled.
183 + Fix a rallocm() rsize bug.
184 + Fix error detection bugs for aligned memory allocation.
185
Jason Evans0e4d0d12011-03-14 16:41:03 -0700186* 2.1.3 (March 14, 2011)
187
188 Bug fixes:
189 - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix
190 for OS X in 2.1.2).
191 - Fix a "thread.arena" mallctl bug.
192 - Fix a thread cache stats merging bug.
193
je6e56e5e2011-03-02 11:23:41 -0800194* 2.1.2 (March 2, 2011)
195
196 Bug fixes:
197 - Fix "thread.{de,}allocatedp" mallctl for OS X.
198 - Add missing jemalloc.a to build system.
199
Jason Evans63692862011-02-07 22:48:35 -0800200* 2.1.1 (January 31, 2011)
Jason Evansada55b22011-01-31 20:08:56 -0800201
Jason Evans63692862011-02-07 22:48:35 -0800202 Bug fixes:
Jason Evansada55b22011-01-31 20:08:56 -0800203 - Fix aligned huge reallocation (affected allocm()).
204 - Fix the ALLOCM_LG_ALIGN macro definition.
205 - Fix a heap dumping deadlock.
206 - Fix a "thread.arena" mallctl bug.
207
Jason Evans63692862011-02-07 22:48:35 -0800208* 2.1.0 (December 3, 2010)
Jason Evans0e8d3d22010-12-03 17:02:16 -0800209
210 This version incorporates some optimizations that can't quite be considered
211 bug fixes.
212
213 New features:
214 - Use Linux's mremap(2) for huge object reallocation when possible.
215 - Avoid locking in mallctl*() when possible.
216 - Add the "thread.[de]allocatedp" mallctl's.
217 - Convert the manual page source from roff to DocBook, and generate both roff
218 and HTML manuals.
219
220 Bug fixes:
221 - Fix a crash due to incorrect bootstrap ordering. This only impacted
222 --enable-debug --enable-dss configurations.
223 - Fix a minor statistics bug for mallctl("swap.avail", ...).
224
Jason Evans63692862011-02-07 22:48:35 -0800225* 2.0.1 (October 29, 2010)
Jason Evans53806fe2010-10-29 20:16:39 -0700226
227 Bug fixes:
228 - Fix a race condition in heap profiling that could cause undefined behavior
Jason Evansada55b22011-01-31 20:08:56 -0800229 if "opt.prof_accum" were disabled.
Jason Evans53806fe2010-10-29 20:16:39 -0700230 - Add missing mutex unlocks for some OOM error paths in the heap profiling
231 code.
232 - Fix a compilation error for non-C99 builds.
233
Jason Evans63692862011-02-07 22:48:35 -0800234* 2.0.0 (October 24, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700235
236 This version focuses on the experimental *allocm() API, and on improved
237 run-time configuration/introspection. Nonetheless, numerous performance
238 improvements are also included.
239
240 New features:
Jason Evansb059a532010-10-24 16:54:40 -0700241 - Implement the experimental {,r,s,d}allocm() API, which provides a superset
242 of the functionality available via malloc(), calloc(), posix_memalign(),
243 realloc(), malloc_usable_size(), and free(). These functions can be used to
244 allocate/reallocate aligned zeroed memory, ask for optional extra memory
245 during reallocation, prevent object movement during reallocation, etc.
246 - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is
247 more human-readable, and more flexible. For example:
248 JEMALLOC_OPTIONS=AJP
249 is now:
250 MALLOC_CONF=abort:true,fill:true,stats_print:true
251 - Port to Apple OS X. Sponsored by Mozilla.
252 - Make it possible for the application to control thread-->arena mappings via
253 the "thread.arena" mallctl.
254 - Add compile-time support for all TLS-related functionality via pthreads TSD.
255 This is mainly of interest for OS X, which does not support TLS, but has a
256 TSD implementation with similar performance.
257 - Override memalign() and valloc() if they are provided by the system.
258 - Add the "arenas.purge" mallctl, which can be used to synchronously purge all
259 dirty unused pages.
260 - Make cumulative heap profiling data optional, so that it is possible to
261 limit the amount of memory consumed by heap profiling data structures.
262 - Add per thread allocation counters that can be accessed via the
263 "thread.allocated" and "thread.deallocated" mallctls.
Jason Evans379f8472010-10-24 16:18:29 -0700264
265 Incompatible changes:
Jason Evansb059a532010-10-24 16:54:40 -0700266 - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above).
267 - Increase default backtrace depth from 4 to 128 for heap profiling.
268 - Disable interval-based profile dumps by default.
Jason Evans379f8472010-10-24 16:18:29 -0700269
270 Bug fixes:
271 - Remove bad assertions in fork handler functions. These assertions could
272 cause aborts for some combinations of configure settings.
273 - Fix strerror_r() usage to deal with non-standard semantics in GNU libc.
274 - Fix leak context reporting. This bug tended to cause the number of contexts
275 to be underreported (though the reported number of objects and bytes were
276 correct).
277 - Fix a realloc() bug for large in-place growing reallocation. This bug could
278 cause memory corruption, but it was hard to trigger.
279 - Fix an allocation bug for small allocations that could be triggered if
280 multiple threads raced to create a new run of backing pages.
281 - Enhance the heap profiler to trigger samples based on usable size, rather
282 than request size.
283 - Fix a heap profiling bug due to sometimes losing track of requested object
284 size for sampled objects.
285
Jason Evans63692862011-02-07 22:48:35 -0800286* 1.0.3 (August 12, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700287
288 Bug fixes:
289 - Fix the libunwind-based implementation of stack backtracing (used for heap
290 profiling). This bug could cause zero-length backtraces to be reported.
291 - Add a missing mutex unlock in library initialization code. If multiple
292 threads raced to initialize malloc, some of them could end up permanently
293 blocked.
294
Jason Evans63692862011-02-07 22:48:35 -0800295* 1.0.2 (May 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700296
297 Bug fixes:
298 - Fix junk filling of large objects, which could cause memory corruption.
299 - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual
300 memory limits could cause swap file configuration to fail. Contributed by
301 Jordan DeLong.
302
Jason Evans63692862011-02-07 22:48:35 -0800303* 1.0.1 (April 14, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700304
305 Bug fixes:
306 - Fix compilation when --enable-fill is specified.
307 - Fix threads-related profiling bugs that affected accuracy and caused memory
308 to be leaked during thread exit.
309 - Fix dirty page purging race conditions that could cause crashes.
310 - Fix crash in tcache flushing code during thread destruction.
311
Jason Evans63692862011-02-07 22:48:35 -0800312* 1.0.0 (April 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700313
314 This release focuses on speed and run-time introspection. Numerous
315 algorithmic improvements make this release substantially faster than its
316 predecessors.
317
318 New features:
319 - Implement autoconf-based configuration system.
320 - Add mallctl*(), for the purposes of introspection and run-time
321 configuration.
322 - Make it possible for the application to manually flush a thread's cache, via
323 the "tcache.flush" mallctl.
324 - Base maximum dirty page count on proportion of active memory.
325 - Compute various addtional run-time statistics, including per size class
326 statistics for large objects.
327 - Expose malloc_stats_print(), which can be called repeatedly by the
328 application.
329 - Simplify the malloc_message() signature to only take one string argument,
330 and incorporate an opaque data pointer argument for use by the application
331 in combination with malloc_stats_print().
332 - Add support for allocation backed by one or more swap files, and allow the
333 application to disable over-commit if swap files are in use.
334 - Implement allocation profiling and leak checking.
335
336 Removed features:
337 - Remove the dynamic arena rebalancing code, since thread-specific caching
338 reduces its utility.
339
340 Bug fixes:
341 - Modify chunk allocation to work when address space layout randomization
342 (ASLR) is in use.
343 - Fix thread cleanup bugs related to TLS destruction.
344 - Handle 0-size allocation requests in posix_memalign().
345 - Fix a chunk leak. The leaked chunks were never touched, so this impacted
346 virtual memory usage, but not physical memory usage.
347
Jason Evans63692862011-02-07 22:48:35 -0800348* linux_2008082[78]a (August 27/28, 2008)
Jason Evans379f8472010-10-24 16:18:29 -0700349
350 These snapshot releases are the simple result of incorporating Linux-specific
351 support into the FreeBSD malloc sources.
352
353--------------------------------------------------------------------------------
354vim:filetype=text:textwidth=80