blob: 97a9046825da79a3f9666963be39f4c22786aaa1 [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 Evans9ef7f5d2012-04-16 18:16:48 -07009* 3.0.0 (XXX not yet released)
10
11 Although this version adds some major new features, the primary focus is on
12 internal code cleanup that facilitates maintainability and portability, most
13 of which is not reflected in the ChangeLog. This is the first release to
14 incorporate substantial contributions from numerous other developers, and the
15 result is a more broadly useful allocator (see the git revision history for
16 contribution details). Note that the license has been unified, thanks to
17 Facebook granting a license under the same terms as the other copyright
18 holders (see COPYING).
19
20 New features:
21 - Implement Valgrind support, redzones, and quarantine.
22 - Add support for additional operating systems:
23 + FreeBSD
24 + Mac OS X Lion
Jason Evans40f514f2012-04-22 16:21:06 -070025 + MinGW
Jason Evans9ef7f5d2012-04-16 18:16:48 -070026 - Add support for additional architectures:
27 + MIPS
28 + SH4
29 + Tilera
30 - Add support for cross compiling.
31 - Add nallocm(), which rounds a request size up to the nearest size class
32 without actually allocating.
33 - Implement aligned_alloc() (blame C11).
34 - Add the --disable-munmap option, and make it the default on Linux.
35 - Add the --with-mangling option.
36 - Add the --disable-experimental option.
37 - Add the "thread.tcache.enabled" mallctl.
Jason Evans0b25fe72012-04-17 16:39:33 -070038 - Add the "opt.prof_final" mallctl.
Jason Evans25a000e2012-04-17 15:49:30 -070039 - Update pprof (from gperftools 2.0).
Jason Evans9ef7f5d2012-04-16 18:16:48 -070040
41 Incompatible changes:
42 - Enable stats by default.
43 - Enable fill by default.
44 - Disable lazy locking by default.
45 - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
46 - Rename the "arenas.pagesize" mallctl to "arenas.page".
Jason Evans0b25fe72012-04-17 16:39:33 -070047 - Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB).
48 - Change the "opt.prof_accum" default from true to false.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070049
50 Removed features:
51 - Remove the swap feature, including the "config.swap", "swap.avail",
52 "swap.prezeroed", "swap.nfds", and "swap.fds" mallctls.
53 - Remove highruns statistics, including the
54 "stats.arenas.<i>.bins.<j>.highruns" and
55 "stats.arenas.<i>.lruns.<j>.highruns" mallctls.
56 - As part of small size class refactoring, remove the "opt.lg_[qc]space_max",
57 "arenas.cacheline", "arenas.subpage", "arenas.[tqcs]space_{min,max}", and
58 "arenas.[tqcs]bins" mallctls.
59 - Remove the "arenas.chunksize" mallctl.
60 - Remove the "opt.lg_prof_tcmax" option.
61 - Remove the "opt.lg_prof_bt_max" option.
62 - Remove the "opt.lg_tcache_gc_sweep" option.
63 - Remove the --disable-tiny option, including the "config.tiny" mallctl.
64 - Remove the --enable-dynamic-page-shift configure option.
65 - Remove the --enable-sysv configure option.
66
67 Bug fixes:
Jason Evans9ef7f5d2012-04-16 18:16:48 -070068 - Fix a statistics-related bug in the "thread.arena" mallctl that could cause
69 invalid statistics and crashes.
70 - Work around TLS dallocation via free() on Linux. This bug could cause
71 write-after-free memory corruption.
Jason Evans52386b22012-04-22 16:00:11 -070072 - Fix a potential deadlock that could occur during interval- and
73 growth-triggered heap profile dumps.
Jason Evans8f0e0eb2012-04-21 13:33:48 -070074 - Fix chunk_alloc_dss() to stop claiming memory is zeroed. This bug could
75 cause memory corruption and crashes with --enable-dss specified.
Jason Evans52386b22012-04-22 16:00:11 -070076 - Fix fork-related bugs that could cause deadlock in children between fork
77 and exec.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070078 - Fix malloc_stats_print() to honor 'b' and 'l' in the opts parameter.
79 - Fix realloc(p, 0) to act like free(p).
80 - Do not enforce minimum alignment in memalign().
81 - Check for NULL pointer in malloc_usable_size().
Jason Evans52386b22012-04-22 16:00:11 -070082 - Fix an off-by-one heap profile statistics bug that could be observed in
83 interval- and growth-triggered heap profiles.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070084 - Fix bin->runcur management to fix a layout policy bug. This bug did not
85 affect correctness.
86 - Fix a bug in choose_arena_hard() that potentially caused more arenas to be
87 initialized than necessary.
88 - Add missing "opt.lg_tcache_max" mallctl implementation.
89 - Use glibc allocator hooks to make mixed allocator usage less likely.
90 - Fix build issues for --disable-tcache.
Jason Evans918d6e22012-04-20 13:42:21 -070091 - Don't mangle pthread_create() when --with-private-namespace is specified.
Jason Evans9ef7f5d2012-04-16 18:16:48 -070092
Jason Evansb3bd8852011-11-14 17:12:45 -080093* 2.2.5 (November 14, 2011)
94
95 Bug fixes:
96 - Fix huge_ralloc() race when using mremap(2). This is a serious bug that
97 could cause memory corruption and/or crashes.
98 - Fix huge_ralloc() to maintain chunk statistics.
99 - Fix malloc_stats_print(..., "a") output.
100
Jason Evansca9ee1a2011-11-05 21:46:23 -0700101* 2.2.4 (November 5, 2011)
102
103 Bug fixes:
104 - Initialize arenas_tsd before using it. This bug existed for 2.2.[0-3], as
105 well as for --disable-tls builds in earlier releases.
106 - Do not assume a 4 KiB page size in test/rallocm.c.
107
Jason Evansc67e4fd2011-08-31 15:19:13 -0700108* 2.2.3 (August 31, 2011)
109
110 This version fixes numerous bugs related to heap profiling.
111
112 Bug fixes:
113 - Fix a prof-related race condition. This bug could cause memory corruption,
114 but only occurred in non-default configurations (prof_accum:false).
115 - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is
116 excluded from backtraces).
117 - Fix a prof-related bug in realloc() (only triggered by OOM errors).
118 - Fix prof-related bugs in allocm() and rallocm().
119 - Fix prof_tdata_cleanup() for --disable-tls builds.
120 - Fix a relative include path, to fix objdir builds.
121
Jason Evans4c484812011-07-30 16:59:13 -0700122* 2.2.2 (July 30, 2011)
123
124 Bug fixes:
125 - Fix a build error for --disable-tcache.
126 - Fix assertions in arena_purge() (for real this time).
127 - Add the --with-private-namespace option. This is a workaround for symbol
128 conflicts that can inadvertently arise when using static libraries.
129
Jason Evans7d9ebea2011-03-30 15:01:08 -0700130* 2.2.1 (March 30, 2011)
131
132 Bug fixes:
133 - Implement atomic operations for x86/x64. This fixes compilation failures
134 for versions of gcc that are still in wide use.
135 - Fix an assertion in arena_purge().
136
Jason Evans4bcd9872011-03-22 15:30:22 -0700137* 2.2.0 (March 22, 2011)
138
139 This version incorporates several improvements to algorithms and data
140 structures that tend to reduce fragmentation and increase speed.
141
142 New features:
143 - Add the "stats.cactive" mallctl.
144 - Update pprof (from google-perftools 1.7).
145 - Improve backtracing-related configuration logic, and add the
146 --disable-prof-libgcc option.
147
148 Bug fixes:
149 - Change default symbol visibility from "internal", to "hidden", which
150 decreases the overhead of library-internal function calls.
151 - Fix symbol visibility so that it is also set on OS X.
152 - Fix a build dependency regression caused by the introduction of the .pic.o
153 suffix for PIC object files.
154 - Add missing checks for mutex initialization failures.
155 - Don't use libgcc-based backtracing except on x64, where it is known to work.
156 - Fix deadlocks on OS X that were due to memory allocation in
157 pthread_mutex_lock().
158 - Heap profiling-specific fixes:
159 + Fix memory corruption due to integer overflow in small region index
160 computation, when using a small enough sample interval that profiling
161 context pointers are stored in small run headers.
162 + Fix a bootstrap ordering bug that only occurred with TLS disabled.
163 + Fix a rallocm() rsize bug.
164 + Fix error detection bugs for aligned memory allocation.
165
Jason Evans0e4d0d12011-03-14 16:41:03 -0700166* 2.1.3 (March 14, 2011)
167
168 Bug fixes:
169 - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix
170 for OS X in 2.1.2).
171 - Fix a "thread.arena" mallctl bug.
172 - Fix a thread cache stats merging bug.
173
je6e56e5e2011-03-02 11:23:41 -0800174* 2.1.2 (March 2, 2011)
175
176 Bug fixes:
177 - Fix "thread.{de,}allocatedp" mallctl for OS X.
178 - Add missing jemalloc.a to build system.
179
Jason Evans63692862011-02-07 22:48:35 -0800180* 2.1.1 (January 31, 2011)
Jason Evansada55b22011-01-31 20:08:56 -0800181
Jason Evans63692862011-02-07 22:48:35 -0800182 Bug fixes:
Jason Evansada55b22011-01-31 20:08:56 -0800183 - Fix aligned huge reallocation (affected allocm()).
184 - Fix the ALLOCM_LG_ALIGN macro definition.
185 - Fix a heap dumping deadlock.
186 - Fix a "thread.arena" mallctl bug.
187
Jason Evans63692862011-02-07 22:48:35 -0800188* 2.1.0 (December 3, 2010)
Jason Evans0e8d3d22010-12-03 17:02:16 -0800189
190 This version incorporates some optimizations that can't quite be considered
191 bug fixes.
192
193 New features:
194 - Use Linux's mremap(2) for huge object reallocation when possible.
195 - Avoid locking in mallctl*() when possible.
196 - Add the "thread.[de]allocatedp" mallctl's.
197 - Convert the manual page source from roff to DocBook, and generate both roff
198 and HTML manuals.
199
200 Bug fixes:
201 - Fix a crash due to incorrect bootstrap ordering. This only impacted
202 --enable-debug --enable-dss configurations.
203 - Fix a minor statistics bug for mallctl("swap.avail", ...).
204
Jason Evans63692862011-02-07 22:48:35 -0800205* 2.0.1 (October 29, 2010)
Jason Evans53806fe2010-10-29 20:16:39 -0700206
207 Bug fixes:
208 - Fix a race condition in heap profiling that could cause undefined behavior
Jason Evansada55b22011-01-31 20:08:56 -0800209 if "opt.prof_accum" were disabled.
Jason Evans53806fe2010-10-29 20:16:39 -0700210 - Add missing mutex unlocks for some OOM error paths in the heap profiling
211 code.
212 - Fix a compilation error for non-C99 builds.
213
Jason Evans63692862011-02-07 22:48:35 -0800214* 2.0.0 (October 24, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700215
216 This version focuses on the experimental *allocm() API, and on improved
217 run-time configuration/introspection. Nonetheless, numerous performance
218 improvements are also included.
219
220 New features:
Jason Evansb059a532010-10-24 16:54:40 -0700221 - Implement the experimental {,r,s,d}allocm() API, which provides a superset
222 of the functionality available via malloc(), calloc(), posix_memalign(),
223 realloc(), malloc_usable_size(), and free(). These functions can be used to
224 allocate/reallocate aligned zeroed memory, ask for optional extra memory
225 during reallocation, prevent object movement during reallocation, etc.
226 - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is
227 more human-readable, and more flexible. For example:
228 JEMALLOC_OPTIONS=AJP
229 is now:
230 MALLOC_CONF=abort:true,fill:true,stats_print:true
231 - Port to Apple OS X. Sponsored by Mozilla.
232 - Make it possible for the application to control thread-->arena mappings via
233 the "thread.arena" mallctl.
234 - Add compile-time support for all TLS-related functionality via pthreads TSD.
235 This is mainly of interest for OS X, which does not support TLS, but has a
236 TSD implementation with similar performance.
237 - Override memalign() and valloc() if they are provided by the system.
238 - Add the "arenas.purge" mallctl, which can be used to synchronously purge all
239 dirty unused pages.
240 - Make cumulative heap profiling data optional, so that it is possible to
241 limit the amount of memory consumed by heap profiling data structures.
242 - Add per thread allocation counters that can be accessed via the
243 "thread.allocated" and "thread.deallocated" mallctls.
Jason Evans379f8472010-10-24 16:18:29 -0700244
245 Incompatible changes:
Jason Evansb059a532010-10-24 16:54:40 -0700246 - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above).
247 - Increase default backtrace depth from 4 to 128 for heap profiling.
248 - Disable interval-based profile dumps by default.
Jason Evans379f8472010-10-24 16:18:29 -0700249
250 Bug fixes:
251 - Remove bad assertions in fork handler functions. These assertions could
252 cause aborts for some combinations of configure settings.
253 - Fix strerror_r() usage to deal with non-standard semantics in GNU libc.
254 - Fix leak context reporting. This bug tended to cause the number of contexts
255 to be underreported (though the reported number of objects and bytes were
256 correct).
257 - Fix a realloc() bug for large in-place growing reallocation. This bug could
258 cause memory corruption, but it was hard to trigger.
259 - Fix an allocation bug for small allocations that could be triggered if
260 multiple threads raced to create a new run of backing pages.
261 - Enhance the heap profiler to trigger samples based on usable size, rather
262 than request size.
263 - Fix a heap profiling bug due to sometimes losing track of requested object
264 size for sampled objects.
265
Jason Evans63692862011-02-07 22:48:35 -0800266* 1.0.3 (August 12, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700267
268 Bug fixes:
269 - Fix the libunwind-based implementation of stack backtracing (used for heap
270 profiling). This bug could cause zero-length backtraces to be reported.
271 - Add a missing mutex unlock in library initialization code. If multiple
272 threads raced to initialize malloc, some of them could end up permanently
273 blocked.
274
Jason Evans63692862011-02-07 22:48:35 -0800275* 1.0.2 (May 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700276
277 Bug fixes:
278 - Fix junk filling of large objects, which could cause memory corruption.
279 - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual
280 memory limits could cause swap file configuration to fail. Contributed by
281 Jordan DeLong.
282
Jason Evans63692862011-02-07 22:48:35 -0800283* 1.0.1 (April 14, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700284
285 Bug fixes:
286 - Fix compilation when --enable-fill is specified.
287 - Fix threads-related profiling bugs that affected accuracy and caused memory
288 to be leaked during thread exit.
289 - Fix dirty page purging race conditions that could cause crashes.
290 - Fix crash in tcache flushing code during thread destruction.
291
Jason Evans63692862011-02-07 22:48:35 -0800292* 1.0.0 (April 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700293
294 This release focuses on speed and run-time introspection. Numerous
295 algorithmic improvements make this release substantially faster than its
296 predecessors.
297
298 New features:
299 - Implement autoconf-based configuration system.
300 - Add mallctl*(), for the purposes of introspection and run-time
301 configuration.
302 - Make it possible for the application to manually flush a thread's cache, via
303 the "tcache.flush" mallctl.
304 - Base maximum dirty page count on proportion of active memory.
305 - Compute various addtional run-time statistics, including per size class
306 statistics for large objects.
307 - Expose malloc_stats_print(), which can be called repeatedly by the
308 application.
309 - Simplify the malloc_message() signature to only take one string argument,
310 and incorporate an opaque data pointer argument for use by the application
311 in combination with malloc_stats_print().
312 - Add support for allocation backed by one or more swap files, and allow the
313 application to disable over-commit if swap files are in use.
314 - Implement allocation profiling and leak checking.
315
316 Removed features:
317 - Remove the dynamic arena rebalancing code, since thread-specific caching
318 reduces its utility.
319
320 Bug fixes:
321 - Modify chunk allocation to work when address space layout randomization
322 (ASLR) is in use.
323 - Fix thread cleanup bugs related to TLS destruction.
324 - Handle 0-size allocation requests in posix_memalign().
325 - Fix a chunk leak. The leaked chunks were never touched, so this impacted
326 virtual memory usage, but not physical memory usage.
327
Jason Evans63692862011-02-07 22:48:35 -0800328* linux_2008082[78]a (August 27/28, 2008)
Jason Evans379f8472010-10-24 16:18:29 -0700329
330 These snapshot releases are the simple result of incorporating Linux-specific
331 support into the FreeBSD malloc sources.
332
333--------------------------------------------------------------------------------
334vim:filetype=text:textwidth=80