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