blob: 61979683ed7817af8d387e60f36a9f6f03924fe0 [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 Evansca9ee1a2011-11-05 21:46:23 -07009* 2.2.4 (November 5, 2011)
10
11 Bug fixes:
12 - Initialize arenas_tsd before using it. This bug existed for 2.2.[0-3], as
13 well as for --disable-tls builds in earlier releases.
14 - Do not assume a 4 KiB page size in test/rallocm.c.
15
Jason Evansc67e4fd2011-08-31 15:19:13 -070016* 2.2.3 (August 31, 2011)
17
18 This version fixes numerous bugs related to heap profiling.
19
20 Bug fixes:
21 - Fix a prof-related race condition. This bug could cause memory corruption,
22 but only occurred in non-default configurations (prof_accum:false).
23 - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is
24 excluded from backtraces).
25 - Fix a prof-related bug in realloc() (only triggered by OOM errors).
26 - Fix prof-related bugs in allocm() and rallocm().
27 - Fix prof_tdata_cleanup() for --disable-tls builds.
28 - Fix a relative include path, to fix objdir builds.
29
Jason Evans4c484812011-07-30 16:59:13 -070030* 2.2.2 (July 30, 2011)
31
32 Bug fixes:
33 - Fix a build error for --disable-tcache.
34 - Fix assertions in arena_purge() (for real this time).
35 - Add the --with-private-namespace option. This is a workaround for symbol
36 conflicts that can inadvertently arise when using static libraries.
37
Jason Evans7d9ebea2011-03-30 15:01:08 -070038* 2.2.1 (March 30, 2011)
39
40 Bug fixes:
41 - Implement atomic operations for x86/x64. This fixes compilation failures
42 for versions of gcc that are still in wide use.
43 - Fix an assertion in arena_purge().
44
Jason Evans4bcd9872011-03-22 15:30:22 -070045* 2.2.0 (March 22, 2011)
46
47 This version incorporates several improvements to algorithms and data
48 structures that tend to reduce fragmentation and increase speed.
49
50 New features:
51 - Add the "stats.cactive" mallctl.
52 - Update pprof (from google-perftools 1.7).
53 - Improve backtracing-related configuration logic, and add the
54 --disable-prof-libgcc option.
55
56 Bug fixes:
57 - Change default symbol visibility from "internal", to "hidden", which
58 decreases the overhead of library-internal function calls.
59 - Fix symbol visibility so that it is also set on OS X.
60 - Fix a build dependency regression caused by the introduction of the .pic.o
61 suffix for PIC object files.
62 - Add missing checks for mutex initialization failures.
63 - Don't use libgcc-based backtracing except on x64, where it is known to work.
64 - Fix deadlocks on OS X that were due to memory allocation in
65 pthread_mutex_lock().
66 - Heap profiling-specific fixes:
67 + Fix memory corruption due to integer overflow in small region index
68 computation, when using a small enough sample interval that profiling
69 context pointers are stored in small run headers.
70 + Fix a bootstrap ordering bug that only occurred with TLS disabled.
71 + Fix a rallocm() rsize bug.
72 + Fix error detection bugs for aligned memory allocation.
73
Jason Evans0e4d0d12011-03-14 16:41:03 -070074* 2.1.3 (March 14, 2011)
75
76 Bug fixes:
77 - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix
78 for OS X in 2.1.2).
79 - Fix a "thread.arena" mallctl bug.
80 - Fix a thread cache stats merging bug.
81
je6e56e5e2011-03-02 11:23:41 -080082* 2.1.2 (March 2, 2011)
83
84 Bug fixes:
85 - Fix "thread.{de,}allocatedp" mallctl for OS X.
86 - Add missing jemalloc.a to build system.
87
Jason Evans63692862011-02-07 22:48:35 -080088* 2.1.1 (January 31, 2011)
Jason Evansada55b22011-01-31 20:08:56 -080089
Jason Evans63692862011-02-07 22:48:35 -080090 Bug fixes:
Jason Evansada55b22011-01-31 20:08:56 -080091 - Fix aligned huge reallocation (affected allocm()).
92 - Fix the ALLOCM_LG_ALIGN macro definition.
93 - Fix a heap dumping deadlock.
94 - Fix a "thread.arena" mallctl bug.
95
Jason Evans63692862011-02-07 22:48:35 -080096* 2.1.0 (December 3, 2010)
Jason Evans0e8d3d22010-12-03 17:02:16 -080097
98 This version incorporates some optimizations that can't quite be considered
99 bug fixes.
100
101 New features:
102 - Use Linux's mremap(2) for huge object reallocation when possible.
103 - Avoid locking in mallctl*() when possible.
104 - Add the "thread.[de]allocatedp" mallctl's.
105 - Convert the manual page source from roff to DocBook, and generate both roff
106 and HTML manuals.
107
108 Bug fixes:
109 - Fix a crash due to incorrect bootstrap ordering. This only impacted
110 --enable-debug --enable-dss configurations.
111 - Fix a minor statistics bug for mallctl("swap.avail", ...).
112
Jason Evans63692862011-02-07 22:48:35 -0800113* 2.0.1 (October 29, 2010)
Jason Evans53806fe2010-10-29 20:16:39 -0700114
115 Bug fixes:
116 - Fix a race condition in heap profiling that could cause undefined behavior
Jason Evansada55b22011-01-31 20:08:56 -0800117 if "opt.prof_accum" were disabled.
Jason Evans53806fe2010-10-29 20:16:39 -0700118 - Add missing mutex unlocks for some OOM error paths in the heap profiling
119 code.
120 - Fix a compilation error for non-C99 builds.
121
Jason Evans63692862011-02-07 22:48:35 -0800122* 2.0.0 (October 24, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700123
124 This version focuses on the experimental *allocm() API, and on improved
125 run-time configuration/introspection. Nonetheless, numerous performance
126 improvements are also included.
127
128 New features:
Jason Evansb059a532010-10-24 16:54:40 -0700129 - Implement the experimental {,r,s,d}allocm() API, which provides a superset
130 of the functionality available via malloc(), calloc(), posix_memalign(),
131 realloc(), malloc_usable_size(), and free(). These functions can be used to
132 allocate/reallocate aligned zeroed memory, ask for optional extra memory
133 during reallocation, prevent object movement during reallocation, etc.
134 - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is
135 more human-readable, and more flexible. For example:
136 JEMALLOC_OPTIONS=AJP
137 is now:
138 MALLOC_CONF=abort:true,fill:true,stats_print:true
139 - Port to Apple OS X. Sponsored by Mozilla.
140 - Make it possible for the application to control thread-->arena mappings via
141 the "thread.arena" mallctl.
142 - Add compile-time support for all TLS-related functionality via pthreads TSD.
143 This is mainly of interest for OS X, which does not support TLS, but has a
144 TSD implementation with similar performance.
145 - Override memalign() and valloc() if they are provided by the system.
146 - Add the "arenas.purge" mallctl, which can be used to synchronously purge all
147 dirty unused pages.
148 - Make cumulative heap profiling data optional, so that it is possible to
149 limit the amount of memory consumed by heap profiling data structures.
150 - Add per thread allocation counters that can be accessed via the
151 "thread.allocated" and "thread.deallocated" mallctls.
Jason Evans379f8472010-10-24 16:18:29 -0700152
153 Incompatible changes:
Jason Evansb059a532010-10-24 16:54:40 -0700154 - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above).
155 - Increase default backtrace depth from 4 to 128 for heap profiling.
156 - Disable interval-based profile dumps by default.
Jason Evans379f8472010-10-24 16:18:29 -0700157
158 Bug fixes:
159 - Remove bad assertions in fork handler functions. These assertions could
160 cause aborts for some combinations of configure settings.
161 - Fix strerror_r() usage to deal with non-standard semantics in GNU libc.
162 - Fix leak context reporting. This bug tended to cause the number of contexts
163 to be underreported (though the reported number of objects and bytes were
164 correct).
165 - Fix a realloc() bug for large in-place growing reallocation. This bug could
166 cause memory corruption, but it was hard to trigger.
167 - Fix an allocation bug for small allocations that could be triggered if
168 multiple threads raced to create a new run of backing pages.
169 - Enhance the heap profiler to trigger samples based on usable size, rather
170 than request size.
171 - Fix a heap profiling bug due to sometimes losing track of requested object
172 size for sampled objects.
173
Jason Evans63692862011-02-07 22:48:35 -0800174* 1.0.3 (August 12, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700175
176 Bug fixes:
177 - Fix the libunwind-based implementation of stack backtracing (used for heap
178 profiling). This bug could cause zero-length backtraces to be reported.
179 - Add a missing mutex unlock in library initialization code. If multiple
180 threads raced to initialize malloc, some of them could end up permanently
181 blocked.
182
Jason Evans63692862011-02-07 22:48:35 -0800183* 1.0.2 (May 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700184
185 Bug fixes:
186 - Fix junk filling of large objects, which could cause memory corruption.
187 - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual
188 memory limits could cause swap file configuration to fail. Contributed by
189 Jordan DeLong.
190
Jason Evans63692862011-02-07 22:48:35 -0800191* 1.0.1 (April 14, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700192
193 Bug fixes:
194 - Fix compilation when --enable-fill is specified.
195 - Fix threads-related profiling bugs that affected accuracy and caused memory
196 to be leaked during thread exit.
197 - Fix dirty page purging race conditions that could cause crashes.
198 - Fix crash in tcache flushing code during thread destruction.
199
Jason Evans63692862011-02-07 22:48:35 -0800200* 1.0.0 (April 11, 2010)
Jason Evans379f8472010-10-24 16:18:29 -0700201
202 This release focuses on speed and run-time introspection. Numerous
203 algorithmic improvements make this release substantially faster than its
204 predecessors.
205
206 New features:
207 - Implement autoconf-based configuration system.
208 - Add mallctl*(), for the purposes of introspection and run-time
209 configuration.
210 - Make it possible for the application to manually flush a thread's cache, via
211 the "tcache.flush" mallctl.
212 - Base maximum dirty page count on proportion of active memory.
213 - Compute various addtional run-time statistics, including per size class
214 statistics for large objects.
215 - Expose malloc_stats_print(), which can be called repeatedly by the
216 application.
217 - Simplify the malloc_message() signature to only take one string argument,
218 and incorporate an opaque data pointer argument for use by the application
219 in combination with malloc_stats_print().
220 - Add support for allocation backed by one or more swap files, and allow the
221 application to disable over-commit if swap files are in use.
222 - Implement allocation profiling and leak checking.
223
224 Removed features:
225 - Remove the dynamic arena rebalancing code, since thread-specific caching
226 reduces its utility.
227
228 Bug fixes:
229 - Modify chunk allocation to work when address space layout randomization
230 (ASLR) is in use.
231 - Fix thread cleanup bugs related to TLS destruction.
232 - Handle 0-size allocation requests in posix_memalign().
233 - Fix a chunk leak. The leaked chunks were never touched, so this impacted
234 virtual memory usage, but not physical memory usage.
235
Jason Evans63692862011-02-07 22:48:35 -0800236* linux_2008082[78]a (August 27/28, 2008)
Jason Evans379f8472010-10-24 16:18:29 -0700237
238 These snapshot releases are the simple result of incorporating Linux-specific
239 support into the FreeBSD malloc sources.
240
241--------------------------------------------------------------------------------
242vim:filetype=text:textwidth=80