Blame src/jemalloc/ChangeLog

Packit 95bb47
Following are change highlights associated with official releases.  Important
Packit 95bb47
bug fixes are all mentioned, but internal enhancements are omitted here for
Packit 95bb47
brevity (even though they are more fun to write about).  Much more detail can be
Packit 95bb47
found in the git revision history:
Packit 95bb47
Packit 95bb47
    https://github.com/jemalloc/jemalloc
Packit 95bb47
Packit 95bb47
* 3.6.0 (March 31, 2014)
Packit 95bb47
Packit 95bb47
  This version contains a critical bug fix for a regression present in 3.5.0 and
Packit 95bb47
  3.5.1.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a regression in arena_chunk_alloc() that caused crashes during
Packit 95bb47
    small/large allocation if chunk allocation failed.  In the absence of this
Packit 95bb47
    bug, chunk allocation failure would result in allocation failure, e.g.  NULL
Packit 95bb47
    return from malloc().  This regression was introduced in 3.5.0.
Packit 95bb47
  - Fix backtracing for gcc intrinsics-based backtracing by specifying
Packit 95bb47
    -fno-omit-frame-pointer to gcc.  Note that the application (and all the
Packit 95bb47
    libraries it links to) must also be compiled with this option for
Packit 95bb47
    backtracing to be reliable.
Packit 95bb47
  - Use dss allocation precedence for huge allocations as well as small/large
Packit 95bb47
    allocations.
Packit 95bb47
  - Fix test assertion failure message formatting.  This bug did not manifect on
Packit 95bb47
    x86_64 systems because of implementation subtleties in va_list.
Packit 95bb47
  - Fix inconsequential test failures for hash and SFMT code.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Support heap profiling on FreeBSD.  This feature depends on the proc
Packit 95bb47
    filesystem being mounted during heap profile dumping.
Packit 95bb47
Packit 95bb47
* 3.5.1 (February 25, 2014)
Packit 95bb47
Packit 95bb47
  This version primarily addresses minor bugs in test code.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Configure Solaris/Illumos to use MADV_FREE.
Packit 95bb47
  - Fix junk filling for mremap(2)-based huge reallocation.  This is only
Packit 95bb47
    relevant if configuring with the --enable-mremap option specified.
Packit 95bb47
  - Avoid compilation failure if 'restrict' C99 keyword is not supported by the
Packit 95bb47
    compiler.
Packit 95bb47
  - Add a configure test for SSE2 rather than assuming it is usable on i686
Packit 95bb47
    systems.  This fixes test compilation errors, especially on 32-bit Linux
Packit 95bb47
    systems.
Packit 95bb47
  - Fix mallctl argument size mismatches (size_t vs. uint64_t) in the stats unit
Packit 95bb47
    test.
Packit 95bb47
  - Fix/remove flawed alignment-related overflow tests.
Packit 95bb47
  - Prevent compiler optimizations that could change backtraces in the
Packit 95bb47
    prof_accum unit test.
Packit 95bb47
Packit 95bb47
* 3.5.0 (January 22, 2014)
Packit 95bb47
Packit 95bb47
  This version focuses on refactoring and automated testing, though it also
Packit 95bb47
  includes some non-trivial heap profiling optimizations not mentioned below.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Add the *allocx() API, which is a successor to the experimental *allocm()
Packit 95bb47
    API.  The *allocx() functions are slightly simpler to use because they have
Packit 95bb47
    fewer parameters, they directly return the results of primary interest, and
Packit 95bb47
    mallocx()/rallocx() avoid the strict aliasing pitfall that
Packit 95bb47
    allocm()/rallocm() share with posix_memalign().  Note that *allocm() is
Packit 95bb47
    slated for removal in the next non-bugfix release.
Packit 95bb47
  - Add support for LinuxThreads.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Unless heap profiling is enabled, disable floating point code and don't link
Packit 95bb47
    with libm.  This, in combination with e.g. EXTRA_CFLAGS=-mno-sse on x64
Packit 95bb47
    systems, makes it possible to completely disable floating point register
Packit 95bb47
    use.  Some versions of glibc neglect to save/restore caller-saved floating
Packit 95bb47
    point registers during dynamic lazy symbol loading, and the symbol loading
Packit 95bb47
    code uses whatever malloc the application happens to have linked/loaded
Packit 95bb47
    with, the result being potential floating point register corruption.
Packit 95bb47
  - Report ENOMEM rather than EINVAL if an OOM occurs during heap profiling
Packit 95bb47
    backtrace creation in imemalign().  This bug impacted posix_memalign() and
Packit 95bb47
    aligned_alloc().
Packit 95bb47
  - Fix a file descriptor leak in a prof_dump_maps() error path.
Packit 95bb47
  - Fix prof_dump() to close the dump file descriptor for all relevant error
Packit 95bb47
    paths.
Packit 95bb47
  - Fix rallocm() to use the arena specified by the ALLOCM_ARENA(s) flag for
Packit 95bb47
    allocation, not just deallocation.
Packit 95bb47
  - Fix a data race for large allocation stats counters.
Packit 95bb47
  - Fix a potential infinite loop during thread exit.  This bug occurred on
Packit 95bb47
    Solaris, and could affect other platforms with similar pthreads TSD
Packit 95bb47
    implementations.
Packit 95bb47
  - Don't junk-fill reallocations unless usable size changes.  This fixes a
Packit 95bb47
    violation of the *allocx()/*allocm() semantics.
Packit 95bb47
  - Fix growing large reallocation to junk fill new space.
Packit 95bb47
  - Fix huge deallocation to junk fill when munmap is disabled.
Packit 95bb47
  - Change the default private namespace prefix from empty to je_, and change
Packit 95bb47
    --with-private-namespace-prefix so that it prepends an additional prefix
Packit 95bb47
    rather than replacing je_.  This reduces the likelihood of applications
Packit 95bb47
    which statically link jemalloc experiencing symbol name collisions.
Packit 95bb47
  - Add missing private namespace mangling (relevant when
Packit 95bb47
    --with-private-namespace is specified).
Packit 95bb47
  - Add and use JEMALLOC_INLINE_C so that static inline functions are marked as
Packit 95bb47
    static even for debug builds.
Packit 95bb47
  - Add a missing mutex unlock in a malloc_init_hard() error path.  In practice
Packit 95bb47
    this error path is never executed.
Packit 95bb47
  - Fix numerous bugs in malloc_strotumax() error handling/reporting.  These
Packit 95bb47
    bugs had no impact except for malformed inputs.
Packit 95bb47
  - Fix numerous bugs in malloc_snprintf().  These bugs were not exercised by
Packit 95bb47
    existing calls, so they had no impact.
Packit 95bb47
Packit 95bb47
* 3.4.1 (October 20, 2013)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a race in the "arenas.extend" mallctl that could cause memory corruption
Packit 95bb47
    of internal data structures and subsequent crashes.
Packit 95bb47
  - Fix Valgrind integration flaws that caused Valgrind warnings about reads of
Packit 95bb47
    uninitialized memory in:
Packit 95bb47
    + arena chunk headers
Packit 95bb47
    + internal zero-initialized data structures (relevant to tcache and prof
Packit 95bb47
      code)
Packit 95bb47
  - Preserve errno during the first allocation.  A readlink(2) call during
Packit 95bb47
    initialization fails unless /etc/malloc.conf exists, so errno was typically
Packit 95bb47
    set during the first allocation prior to this fix.
Packit 95bb47
  - Fix compilation warnings reported by gcc 4.8.1.
Packit 95bb47
Packit 95bb47
* 3.4.0 (June 2, 2013)
Packit 95bb47
Packit 95bb47
  This version is essentially a small bugfix release, but the addition of
Packit 95bb47
  aarch64 support requires that the minor version be incremented.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix race-triggered deadlocks in chunk_record().  These deadlocks were
Packit 95bb47
    typically triggered by multiple threads concurrently deallocating huge
Packit 95bb47
    objects.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Add support for the aarch64 architecture.
Packit 95bb47
Packit 95bb47
* 3.3.1 (March 6, 2013)
Packit 95bb47
Packit 95bb47
  This version fixes bugs that are typically encountered only when utilizing
Packit 95bb47
  custom run-time options.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a locking order bug that could cause deadlock during fork if heap
Packit 95bb47
    profiling were enabled.
Packit 95bb47
  - Fix a chunk recycling bug that could cause the allocator to lose track of
Packit 95bb47
    whether a chunk was zeroed.  On FreeBSD, NetBSD, and OS X, it could cause
Packit 95bb47
    corruption if allocating via sbrk(2) (unlikely unless running with the
Packit 95bb47
    "dss:primary" option specified).  This was completely harmless on Linux
Packit 95bb47
    unless using mlockall(2) (and unlikely even then, unless the
Packit 95bb47
    --disable-munmap configure option or the "dss:primary" option was
Packit 95bb47
    specified).  This regression was introduced in 3.1.0 by the
Packit 95bb47
    mlockall(2)/madvise(2) interaction fix.
Packit 95bb47
  - Fix TLS-related memory corruption that could occur during thread exit if the
Packit 95bb47
    thread never allocated memory.  Only the quarantine and prof facilities were
Packit 95bb47
    susceptible.
Packit 95bb47
  - Fix two quarantine bugs:
Packit 95bb47
    + Internal reallocation of the quarantined object array leaked the old
Packit 95bb47
      array.
Packit 95bb47
    + Reallocation failure for internal reallocation of the quarantined object
Packit 95bb47
      array (very unlikely) resulted in memory corruption.
Packit 95bb47
  - Fix Valgrind integration to annotate all internally allocated memory in a
Packit 95bb47
    way that keeps Valgrind happy about internal data structure access.
Packit 95bb47
  - Fix building for s390 systems.
Packit 95bb47
Packit 95bb47
* 3.3.0 (January 23, 2013)
Packit 95bb47
Packit 95bb47
  This version includes a few minor performance improvements in addition to the
Packit 95bb47
  listed new features and bug fixes.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Add clipping support to lg_chunk option processing.
Packit 95bb47
  - Add the --enable-ivsalloc option.
Packit 95bb47
  - Add the --without-export option.
Packit 95bb47
  - Add the --disable-zone-allocator option.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix "arenas.extend" mallctl to output the number of arenas.
Packit 95bb47
  - Fix chunk_recycle() to unconditionally inform Valgrind that returned memory
Packit 95bb47
    is undefined.
Packit 95bb47
  - Fix build break on FreeBSD related to alloca.h.
Packit 95bb47
Packit 95bb47
* 3.2.0 (November 9, 2012)
Packit 95bb47
Packit 95bb47
  In addition to a couple of bug fixes, this version modifies page run
Packit 95bb47
  allocation and dirty page purging algorithms in order to better control
Packit 95bb47
  page-level virtual memory fragmentation.
Packit 95bb47
Packit 95bb47
  Incompatible changes:
Packit 95bb47
  - Change the "opt.lg_dirty_mult" default from 5 to 3 (32:1 to 8:1).
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix dss/mmap allocation precedence code to use recyclable mmap memory only
Packit 95bb47
    after primary dss allocation fails.
Packit 95bb47
  - Fix deadlock in the "arenas.purge" mallctl.  This regression was introduced
Packit 95bb47
    in 3.1.0 by the addition of the "arena..purge" mallctl.
Packit 95bb47
Packit 95bb47
* 3.1.0 (October 16, 2012)
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Auto-detect whether running inside Valgrind, thus removing the need to
Packit 95bb47
    manually specify MALLOC_CONF=valgrind:true.
Packit 95bb47
  - Add the "arenas.extend" mallctl, which allows applications to create
Packit 95bb47
    manually managed arenas.
Packit 95bb47
  - Add the ALLOCM_ARENA() flag for {,r,d}allocm().
Packit 95bb47
  - Add the "opt.dss", "arena..dss", and "stats.arenas..dss" mallctls,
Packit 95bb47
    which provide control over dss/mmap precedence.
Packit 95bb47
  - Add the "arena..purge" mallctl, which obsoletes "arenas.purge".
Packit 95bb47
  - Define LG_QUANTUM for hppa.
Packit 95bb47
Packit 95bb47
  Incompatible changes:
Packit 95bb47
  - Disable tcache by default if running inside Valgrind, in order to avoid
Packit 95bb47
    making unallocated objects appear reachable to Valgrind.
Packit 95bb47
  - Drop const from malloc_usable_size() argument on Linux.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix heap profiling crash if sampled object is freed via realloc(p, 0).
Packit 95bb47
  - Remove const from __*_hook variable declarations, so that glibc can modify
Packit 95bb47
    them during process forking.
Packit 95bb47
  - Fix mlockall(2)/madvise(2) interaction.
Packit 95bb47
  - Fix fork(2)-related deadlocks.
Packit 95bb47
  - Fix error return value for "thread.tcache.enabled" mallctl.
Packit 95bb47
Packit 95bb47
* 3.0.0 (May 11, 2012)
Packit 95bb47
Packit 95bb47
  Although this version adds some major new features, the primary focus is on
Packit 95bb47
  internal code cleanup that facilitates maintainability and portability, most
Packit 95bb47
  of which is not reflected in the ChangeLog.  This is the first release to
Packit 95bb47
  incorporate substantial contributions from numerous other developers, and the
Packit 95bb47
  result is a more broadly useful allocator (see the git revision history for
Packit 95bb47
  contribution details).  Note that the license has been unified, thanks to
Packit 95bb47
  Facebook granting a license under the same terms as the other copyright
Packit 95bb47
  holders (see COPYING).
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Implement Valgrind support, redzones, and quarantine.
Packit 95bb47
  - Add support for additional platforms:
Packit 95bb47
    + FreeBSD
Packit 95bb47
    + Mac OS X Lion
Packit 95bb47
    + MinGW
Packit 95bb47
    + Windows (no support yet for replacing the system malloc)
Packit 95bb47
  - Add support for additional architectures:
Packit 95bb47
    + MIPS
Packit 95bb47
    + SH4
Packit 95bb47
    + Tilera
Packit 95bb47
  - Add support for cross compiling.
Packit 95bb47
  - Add nallocm(), which rounds a request size up to the nearest size class
Packit 95bb47
    without actually allocating.
Packit 95bb47
  - Implement aligned_alloc() (blame C11).
Packit 95bb47
  - Add the "thread.tcache.enabled" mallctl.
Packit 95bb47
  - Add the "opt.prof_final" mallctl.
Packit 95bb47
  - Update pprof (from gperftools 2.0).
Packit 95bb47
  - Add the --with-mangling option.
Packit 95bb47
  - Add the --disable-experimental option.
Packit 95bb47
  - Add the --disable-munmap option, and make it the default on Linux.
Packit 95bb47
  - Add the --enable-mremap option, which disables use of mremap(2) by default.
Packit 95bb47
Packit 95bb47
  Incompatible changes:
Packit 95bb47
  - Enable stats by default.
Packit 95bb47
  - Enable fill by default.
Packit 95bb47
  - Disable lazy locking by default.
Packit 95bb47
  - Rename the "tcache.flush" mallctl to "thread.tcache.flush".
Packit 95bb47
  - Rename the "arenas.pagesize" mallctl to "arenas.page".
Packit 95bb47
  - Change the "opt.lg_prof_sample" default from 0 to 19 (1 B to 512 KiB).
Packit 95bb47
  - Change the "opt.prof_accum" default from true to false.
Packit 95bb47
Packit 95bb47
  Removed features:
Packit 95bb47
  - Remove the swap feature, including the "config.swap", "swap.avail",
Packit 95bb47
    "swap.prezeroed", "swap.nfds", and "swap.fds" mallctls.
Packit 95bb47
  - Remove highruns statistics, including the
Packit 95bb47
    "stats.arenas..bins.<j>.highruns" and
Packit 95bb47
    "stats.arenas..lruns.<j>.highruns" mallctls.
Packit 95bb47
  - As part of small size class refactoring, remove the "opt.lg_[qc]space_max",
Packit 95bb47
    "arenas.cacheline", "arenas.subpage", "arenas.[tqcs]space_{min,max}", and
Packit 95bb47
    "arenas.[tqcs]bins" mallctls.
Packit 95bb47
  - Remove the "arenas.chunksize" mallctl.
Packit 95bb47
  - Remove the "opt.lg_prof_tcmax" option.
Packit 95bb47
  - Remove the "opt.lg_prof_bt_max" option.
Packit 95bb47
  - Remove the "opt.lg_tcache_gc_sweep" option.
Packit 95bb47
  - Remove the --disable-tiny option, including the "config.tiny" mallctl.
Packit 95bb47
  - Remove the --enable-dynamic-page-shift configure option.
Packit 95bb47
  - Remove the --enable-sysv configure option.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a statistics-related bug in the "thread.arena" mallctl that could cause
Packit 95bb47
    invalid statistics and crashes.
Packit 95bb47
  - Work around TLS deallocation via free() on Linux.  This bug could cause
Packit 95bb47
    write-after-free memory corruption.
Packit 95bb47
  - Fix a potential deadlock that could occur during interval- and
Packit 95bb47
    growth-triggered heap profile dumps.
Packit 95bb47
  - Fix large calloc() zeroing bugs due to dropping chunk map unzeroed flags.
Packit 95bb47
  - Fix chunk_alloc_dss() to stop claiming memory is zeroed.  This bug could
Packit 95bb47
    cause memory corruption and crashes with --enable-dss specified.
Packit 95bb47
  - Fix fork-related bugs that could cause deadlock in children between fork
Packit 95bb47
    and exec.
Packit 95bb47
  - Fix malloc_stats_print() to honor 'b' and 'l' in the opts parameter.
Packit 95bb47
  - Fix realloc(p, 0) to act like free(p).
Packit 95bb47
  - Do not enforce minimum alignment in memalign().
Packit 95bb47
  - Check for NULL pointer in malloc_usable_size().
Packit 95bb47
  - Fix an off-by-one heap profile statistics bug that could be observed in
Packit 95bb47
    interval- and growth-triggered heap profiles.
Packit 95bb47
  - Fix the "epoch" mallctl to update cached stats even if the passed in epoch
Packit 95bb47
    is 0.
Packit 95bb47
  - Fix bin->runcur management to fix a layout policy bug.  This bug did not
Packit 95bb47
    affect correctness.
Packit 95bb47
  - Fix a bug in choose_arena_hard() that potentially caused more arenas to be
Packit 95bb47
    initialized than necessary.
Packit 95bb47
  - Add missing "opt.lg_tcache_max" mallctl implementation.
Packit 95bb47
  - Use glibc allocator hooks to make mixed allocator usage less likely.
Packit 95bb47
  - Fix build issues for --disable-tcache.
Packit 95bb47
  - Don't mangle pthread_create() when --with-private-namespace is specified.
Packit 95bb47
Packit 95bb47
* 2.2.5 (November 14, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix huge_ralloc() race when using mremap(2).  This is a serious bug that
Packit 95bb47
    could cause memory corruption and/or crashes.
Packit 95bb47
  - Fix huge_ralloc() to maintain chunk statistics.
Packit 95bb47
  - Fix malloc_stats_print(..., "a") output.
Packit 95bb47
Packit 95bb47
* 2.2.4 (November 5, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Initialize arenas_tsd before using it.  This bug existed for 2.2.[0-3], as
Packit 95bb47
    well as for --disable-tls builds in earlier releases.
Packit 95bb47
  - Do not assume a 4 KiB page size in test/rallocm.c.
Packit 95bb47
Packit 95bb47
* 2.2.3 (August 31, 2011)
Packit 95bb47
Packit 95bb47
  This version fixes numerous bugs related to heap profiling.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a prof-related race condition.  This bug could cause memory corruption,
Packit 95bb47
    but only occurred in non-default configurations (prof_accum:false).
Packit 95bb47
  - Fix off-by-one backtracing issues (make sure that prof_alloc_prep() is
Packit 95bb47
    excluded from backtraces).
Packit 95bb47
  - Fix a prof-related bug in realloc() (only triggered by OOM errors).
Packit 95bb47
  - Fix prof-related bugs in allocm() and rallocm().
Packit 95bb47
  - Fix prof_tdata_cleanup() for --disable-tls builds.
Packit 95bb47
  - Fix a relative include path, to fix objdir builds.
Packit 95bb47
Packit 95bb47
* 2.2.2 (July 30, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a build error for --disable-tcache.
Packit 95bb47
  - Fix assertions in arena_purge() (for real this time).
Packit 95bb47
  - Add the --with-private-namespace option.  This is a workaround for symbol
Packit 95bb47
    conflicts that can inadvertently arise when using static libraries.
Packit 95bb47
Packit 95bb47
* 2.2.1 (March 30, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Implement atomic operations for x86/x64.  This fixes compilation failures
Packit 95bb47
    for versions of gcc that are still in wide use.
Packit 95bb47
  - Fix an assertion in arena_purge().
Packit 95bb47
Packit 95bb47
* 2.2.0 (March 22, 2011)
Packit 95bb47
Packit 95bb47
  This version incorporates several improvements to algorithms and data
Packit 95bb47
  structures that tend to reduce fragmentation and increase speed.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Add the "stats.cactive" mallctl.
Packit 95bb47
  - Update pprof (from google-perftools 1.7).
Packit 95bb47
  - Improve backtracing-related configuration logic, and add the
Packit 95bb47
    --disable-prof-libgcc option.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Change default symbol visibility from "internal", to "hidden", which
Packit 95bb47
    decreases the overhead of library-internal function calls.
Packit 95bb47
  - Fix symbol visibility so that it is also set on OS X.
Packit 95bb47
  - Fix a build dependency regression caused by the introduction of the .pic.o
Packit 95bb47
    suffix for PIC object files.
Packit 95bb47
  - Add missing checks for mutex initialization failures.
Packit 95bb47
  - Don't use libgcc-based backtracing except on x64, where it is known to work.
Packit 95bb47
  - Fix deadlocks on OS X that were due to memory allocation in
Packit 95bb47
    pthread_mutex_lock().
Packit 95bb47
  - Heap profiling-specific fixes:
Packit 95bb47
    + Fix memory corruption due to integer overflow in small region index
Packit 95bb47
      computation, when using a small enough sample interval that profiling
Packit 95bb47
      context pointers are stored in small run headers.
Packit 95bb47
    + Fix a bootstrap ordering bug that only occurred with TLS disabled.
Packit 95bb47
    + Fix a rallocm() rsize bug.
Packit 95bb47
    + Fix error detection bugs for aligned memory allocation.
Packit 95bb47
Packit 95bb47
* 2.1.3 (March 14, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a cpp logic regression (due to the "thread.{de,}allocatedp" mallctl fix
Packit 95bb47
    for OS X in 2.1.2).
Packit 95bb47
  - Fix a "thread.arena" mallctl bug.
Packit 95bb47
  - Fix a thread cache stats merging bug.
Packit 95bb47
Packit 95bb47
* 2.1.2 (March 2, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix "thread.{de,}allocatedp" mallctl for OS X.
Packit 95bb47
  - Add missing jemalloc.a to build system.
Packit 95bb47
Packit 95bb47
* 2.1.1 (January 31, 2011)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix aligned huge reallocation (affected allocm()).
Packit 95bb47
  - Fix the ALLOCM_LG_ALIGN macro definition.
Packit 95bb47
  - Fix a heap dumping deadlock.
Packit 95bb47
  - Fix a "thread.arena" mallctl bug.
Packit 95bb47
Packit 95bb47
* 2.1.0 (December 3, 2010)
Packit 95bb47
Packit 95bb47
  This version incorporates some optimizations that can't quite be considered
Packit 95bb47
  bug fixes.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Use Linux's mremap(2) for huge object reallocation when possible.
Packit 95bb47
  - Avoid locking in mallctl*() when possible.
Packit 95bb47
  - Add the "thread.[de]allocatedp" mallctl's.
Packit 95bb47
  - Convert the manual page source from roff to DocBook, and generate both roff
Packit 95bb47
    and HTML manuals.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a crash due to incorrect bootstrap ordering.  This only impacted
Packit 95bb47
    --enable-debug --enable-dss configurations.
Packit 95bb47
  - Fix a minor statistics bug for mallctl("swap.avail", ...).
Packit 95bb47
Packit 95bb47
* 2.0.1 (October 29, 2010)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix a race condition in heap profiling that could cause undefined behavior
Packit 95bb47
    if "opt.prof_accum" were disabled.
Packit 95bb47
  - Add missing mutex unlocks for some OOM error paths in the heap profiling
Packit 95bb47
    code.
Packit 95bb47
  - Fix a compilation error for non-C99 builds.
Packit 95bb47
Packit 95bb47
* 2.0.0 (October 24, 2010)
Packit 95bb47
Packit 95bb47
  This version focuses on the experimental *allocm() API, and on improved
Packit 95bb47
  run-time configuration/introspection.  Nonetheless, numerous performance
Packit 95bb47
  improvements are also included.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Implement the experimental {,r,s,d}allocm() API, which provides a superset
Packit 95bb47
    of the functionality available via malloc(), calloc(), posix_memalign(),
Packit 95bb47
    realloc(), malloc_usable_size(), and free().  These functions can be used to
Packit 95bb47
    allocate/reallocate aligned zeroed memory, ask for optional extra memory
Packit 95bb47
    during reallocation, prevent object movement during reallocation, etc.
Packit 95bb47
  - Replace JEMALLOC_OPTIONS/JEMALLOC_PROF_PREFIX with MALLOC_CONF, which is
Packit 95bb47
    more human-readable, and more flexible.  For example:
Packit 95bb47
      JEMALLOC_OPTIONS=AJP
Packit 95bb47
    is now:
Packit 95bb47
      MALLOC_CONF=abort:true,fill:true,stats_print:true
Packit 95bb47
  - Port to Apple OS X.  Sponsored by Mozilla.
Packit 95bb47
  - Make it possible for the application to control thread-->arena mappings via
Packit 95bb47
    the "thread.arena" mallctl.
Packit 95bb47
  - Add compile-time support for all TLS-related functionality via pthreads TSD.
Packit 95bb47
    This is mainly of interest for OS X, which does not support TLS, but has a
Packit 95bb47
    TSD implementation with similar performance.
Packit 95bb47
  - Override memalign() and valloc() if they are provided by the system.
Packit 95bb47
  - Add the "arenas.purge" mallctl, which can be used to synchronously purge all
Packit 95bb47
    dirty unused pages.
Packit 95bb47
  - Make cumulative heap profiling data optional, so that it is possible to
Packit 95bb47
    limit the amount of memory consumed by heap profiling data structures.
Packit 95bb47
  - Add per thread allocation counters that can be accessed via the
Packit 95bb47
    "thread.allocated" and "thread.deallocated" mallctls.
Packit 95bb47
Packit 95bb47
  Incompatible changes:
Packit 95bb47
  - Remove JEMALLOC_OPTIONS and malloc_options (see MALLOC_CONF above).
Packit 95bb47
  - Increase default backtrace depth from 4 to 128 for heap profiling.
Packit 95bb47
  - Disable interval-based profile dumps by default.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Remove bad assertions in fork handler functions.  These assertions could
Packit 95bb47
    cause aborts for some combinations of configure settings.
Packit 95bb47
  - Fix strerror_r() usage to deal with non-standard semantics in GNU libc.
Packit 95bb47
  - Fix leak context reporting.  This bug tended to cause the number of contexts
Packit 95bb47
    to be underreported (though the reported number of objects and bytes were
Packit 95bb47
    correct).
Packit 95bb47
  - Fix a realloc() bug for large in-place growing reallocation.  This bug could
Packit 95bb47
    cause memory corruption, but it was hard to trigger.
Packit 95bb47
  - Fix an allocation bug for small allocations that could be triggered if
Packit 95bb47
    multiple threads raced to create a new run of backing pages.
Packit 95bb47
  - Enhance the heap profiler to trigger samples based on usable size, rather
Packit 95bb47
    than request size.
Packit 95bb47
  - Fix a heap profiling bug due to sometimes losing track of requested object
Packit 95bb47
    size for sampled objects.
Packit 95bb47
Packit 95bb47
* 1.0.3 (August 12, 2010)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix the libunwind-based implementation of stack backtracing (used for heap
Packit 95bb47
    profiling).  This bug could cause zero-length backtraces to be reported.
Packit 95bb47
  - Add a missing mutex unlock in library initialization code.  If multiple
Packit 95bb47
    threads raced to initialize malloc, some of them could end up permanently
Packit 95bb47
    blocked.
Packit 95bb47
Packit 95bb47
* 1.0.2 (May 11, 2010)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix junk filling of large objects, which could cause memory corruption.
Packit 95bb47
  - Add MAP_NORESERVE support for chunk mapping, because otherwise virtual
Packit 95bb47
    memory limits could cause swap file configuration to fail.  Contributed by
Packit 95bb47
    Jordan DeLong.
Packit 95bb47
Packit 95bb47
* 1.0.1 (April 14, 2010)
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Fix compilation when --enable-fill is specified.
Packit 95bb47
  - Fix threads-related profiling bugs that affected accuracy and caused memory
Packit 95bb47
    to be leaked during thread exit.
Packit 95bb47
  - Fix dirty page purging race conditions that could cause crashes.
Packit 95bb47
  - Fix crash in tcache flushing code during thread destruction.
Packit 95bb47
Packit 95bb47
* 1.0.0 (April 11, 2010)
Packit 95bb47
Packit 95bb47
  This release focuses on speed and run-time introspection.  Numerous
Packit 95bb47
  algorithmic improvements make this release substantially faster than its
Packit 95bb47
  predecessors.
Packit 95bb47
Packit 95bb47
  New features:
Packit 95bb47
  - Implement autoconf-based configuration system.
Packit 95bb47
  - Add mallctl*(), for the purposes of introspection and run-time
Packit 95bb47
    configuration.
Packit 95bb47
  - Make it possible for the application to manually flush a thread's cache, via
Packit 95bb47
    the "tcache.flush" mallctl.
Packit 95bb47
  - Base maximum dirty page count on proportion of active memory.
Packit 95bb47
  - Compute various additional run-time statistics, including per size class
Packit 95bb47
    statistics for large objects.
Packit 95bb47
  - Expose malloc_stats_print(), which can be called repeatedly by the
Packit 95bb47
    application.
Packit 95bb47
  - Simplify the malloc_message() signature to only take one string argument,
Packit 95bb47
    and incorporate an opaque data pointer argument for use by the application
Packit 95bb47
    in combination with malloc_stats_print().
Packit 95bb47
  - Add support for allocation backed by one or more swap files, and allow the
Packit 95bb47
    application to disable over-commit if swap files are in use.
Packit 95bb47
  - Implement allocation profiling and leak checking.
Packit 95bb47
Packit 95bb47
  Removed features:
Packit 95bb47
  - Remove the dynamic arena rebalancing code, since thread-specific caching
Packit 95bb47
    reduces its utility.
Packit 95bb47
Packit 95bb47
  Bug fixes:
Packit 95bb47
  - Modify chunk allocation to work when address space layout randomization
Packit 95bb47
    (ASLR) is in use.
Packit 95bb47
  - Fix thread cleanup bugs related to TLS destruction.
Packit 95bb47
  - Handle 0-size allocation requests in posix_memalign().
Packit 95bb47
  - Fix a chunk leak.  The leaked chunks were never touched, so this impacted
Packit 95bb47
    virtual memory usage, but not physical memory usage.
Packit 95bb47
Packit 95bb47
* linux_2008082[78]a (August 27/28, 2008)
Packit 95bb47
Packit 95bb47
  These snapshot releases are the simple result of incorporating Linux-specific
Packit 95bb47
  support into the FreeBSD malloc sources.
Packit 95bb47
Packit 95bb47
--------------------------------------------------------------------------------
Packit 95bb47
vim:filetype=text:textwidth=80