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