Skip to content
  1. Oct 20, 2013
    • Jason Evans's avatar
      Update ChangeLog. · ff08ef70
      Jason Evans authored
      ff08ef70
    • Jason Evans's avatar
      Fix a Valgrind integration flaw. · 87a02d2b
      Jason Evans authored
      Fix a Valgrind integration flaw that caused Valgrind warnings about
      reads of uninitialized memory in arena chunk headers.
      87a02d2b
    • Jason Evans's avatar
      Fix inlining warning. · 543abf7e
      Jason Evans authored
      Add the JEMALLOC_ALWAYS_INLINE_C macro and use it for always-inlined
      functions declared in .c files.  This fixes a function attribute
      inconsistency for debug builds that resulted in (harmless) compiler
      warnings about functions not being inlinable.
      
      Reported by Ricardo Nabinger Sanchez.
      543abf7e
    • Jason Evans's avatar
      Silence an unused variable warning. · 3ab682d3
      Jason Evans authored
      Reported by Ricardo Nabinger Sanchez.
      3ab682d3
  2. Oct 14, 2013
  3. Oct 03, 2013
  4. Aug 20, 2013
    • Jason Evans's avatar
      Fix build break for MSVC. · 80ddf498
      Jason Evans authored
      Introduce AROUT to control whether there is space between ARFLAGS and
      $@.  This regression was introduced by
      ad505e0e.
      
      Reported by Mike Hommey.
      80ddf498
  5. Aug 19, 2013
  6. Jun 03, 2013
  7. May 07, 2013
  8. Apr 23, 2013
  9. Apr 17, 2013
  10. Mar 20, 2013
    • Jason Evans's avatar
      Clarify how to use malloc_conf. · 705328ca
      Jason Evans authored
      Clarify that malloc_conf is intended only for compile-time
      configuration, since jemalloc may be initialized before main() is
      entered.
      705328ca
  11. Mar 06, 2013
  12. Feb 06, 2013
  13. Feb 01, 2013
    • Jason Evans's avatar
      Fix Valgrind integration. · 06912756
      Jason Evans authored
      Fix Valgrind integration to annotate all internally allocated memory in
      a way that keeps Valgrind happy about internal data structure access.
      06912756
    • Jason Evans's avatar
      Fix a chunk recycling bug. · a7a28c33
      Jason Evans authored
      Fix a chunk recycling bug that could cause the allocator to lose track
      of whether a chunk was zeroed.  On FreeBSD, NetBSD, and OS X, it could
      cause corruption if allocating via sbrk(2) (unlikely unless running with
      the "dss:primary" option specified).  This was completely harmless on
      Linux unless using mlockall(2) (and unlikely even then, unless the
      --disable-munmap configure option or the "dss:primary" option was
      specified).  This regression was introduced in 3.1.0 by the
      mlockall(2)/madvise(2) interaction fix.
      a7a28c33
  14. Jan 31, 2013
    • Jason Evans's avatar
      Fix two quarantine bugs. · d0e942e4
      Jason Evans authored
      Internal reallocation of the quarantined object array leaked the old array.
      
      Reallocation failure for internal reallocation of the quarantined object
      array (very unlikely) resulted in memory corruption.
      d0e942e4
    • Jason Evans's avatar
      Fix potential TLS-related memory corruption. · bbe29d37
      Jason Evans authored
      Avoid writing to uninitialized TLS as a side effect of deallocation.
      Initializing TLS during deallocation is unsafe because it is possible
      that a thread never did any allocation, and that TLS has already been
      deallocated by the threads library, resulting in write-after-free
      corruption.  These fixes affect prof_tdata and quarantine; all other
      uses of TLS are already safe, whether intentionally (as for tcache) or
      unintentionally (as for arenas).
      bbe29d37
  15. Jan 23, 2013
  16. Jan 22, 2013
    • Jason Evans's avatar
      Update phony targets. · 42ba90eb
      Jason Evans authored
      Submitted by Frederik Deweerdt.
      42ba90eb
    • Jason Evans's avatar
      Use config_* instead of JEMALLOC_*. · ba175a2b
      Jason Evans authored
      Convert a couple of stragglers from JEMALLOC_* to use config_*.
      ba175a2b
    • Jason Evans's avatar
      Update hash from MurmurHash2 to MurmurHash3. · ae03bf6a
      Jason Evans authored
      Update hash from MurmurHash2 to MurmurHash3, primarily because the
      latter generates 128 bits in a single call for no extra cost, which
      simplifies integration with cuckoo hashing.
      ae03bf6a
    • Jason Evans's avatar
      Fix AC_PATH_PROG() calls to specify default. · 7329a4f0
      Jason Evans authored
      Fix AC_PATH_PROG() calls to specify 'false' as the default, so that if
      the configure script fails to find a program, the false program is
      instead called, and an error occurs.  Prior to this fix, if xsltproc
      could not be found, make would not report an error due to the leading -o
      in the xsltproc invocation.
      
      Reported by David Reiss.
      7329a4f0
    • Jason Evans's avatar
      Add and use JEMALLOC_ALWAYS_INLINE. · 88393cb0
      Jason Evans authored
      Add JEMALLOC_ALWAYS_INLINE and use it to guarantee that the entire fast
      paths of the primary allocation/deallocation functions are inlined.
      88393cb0
    • Jason Evans's avatar
      Tighten valgrind integration. · 38067483
      Jason Evans authored
      Tighten valgrind integration such that immediately after memory is
      validated or zeroed, valgrind is told to forget the memory's 'defined'
      state.  The only place newly allocated memory should be left marked as
      'defined' is in the public functions (e.g. calloc() and realloc()).
      38067483
    • Jason Evans's avatar
      Avoid validating freshly mapped memory. · 14a2c6a6
      Jason Evans authored
      Move validation of supposedly zeroed pages from chunk_alloc() to
      chunk_recycle().  There is little point to validating newly mapped
      memory returned by chunk_alloc_mmap(), and memory that comes from sbrk()
      is explicitly zeroed, so there is little risk to assuming that
      chunk_alloc_dss() actually does the zeroing properly.
      
      This relaxation of validation can make a big difference to application
      startup time and overall system usage on platforms that use jemalloc as
      the system allocator (namely FreeBSD).
      
      Submitted by Ian Lepore <ian@FreeBSD.org>.
      14a2c6a6
  17. Dec 24, 2012
  18. Dec 23, 2012