Skip to content
  1. Sep 25, 2015
    • Jason Evans's avatar
      Update ChangeLog for 4.0.3. · 02709688
      Jason Evans authored
      02709688
    • Jason Evans's avatar
      Work around an NPTL-specific TSD issue. · d36c7ebb
      Jason Evans authored
      Work around a potentially bad thread-specific data initialization
      interaction with NPTL (glibc's pthreads implementation).
      
      This resolves #283.
      d36c7ebb
    • Jason Evans's avatar
      Fix xallocx(..., MALLOCX_ZERO) bugs. · d260f442
      Jason Evans authored
      Zero all trailing bytes of large allocations when
      --enable-cache-oblivious configure option is enabled.  This regression
      was introduced by 8a03cf03 (Implement
      cache index randomization for large allocations.).
      
      Zero trailing bytes of huge allocations when resizing from/to a size
      class that is not a multiple of the chunk size.
      d260f442
  2. Sep 22, 2015
    • Jason Evans's avatar
      Fix prof_tctx_dump_iter() to filter. · fb64ec29
      Jason Evans authored
      Fix prof_tctx_dump_iter() to filter out nodes that were created after
      heap profile dumping started.  Prior to this fix, spurious entries with
      arbitrary object/byte counts could appear in heap profiles, which
      resulted in jeprof inaccuracies or failures.
      fb64ec29
  3. Sep 21, 2015
  4. Sep 17, 2015
    • Jason Evans's avatar
      Fix prof_alloc_rollback(). · 3ca0cf6a
      Jason Evans authored
      Fix prof_alloc_rollback() to read tdata from thread-specific data rather
      than dereferencing a potentially invalid tctx.
      3ca0cf6a
    • Jason Evans's avatar
      Fix irallocx_prof_sample(). · 4be9c79f
      Jason Evans authored
      Fix irallocx_prof_sample() to always allocate large regions, even when
      alignment is non-zero.
      4be9c79f
    • Jason Evans's avatar
      Fix ixallocx_prof_sample(). · 38e2c8fa
      Jason Evans authored
      Fix ixallocx_prof_sample() to never modify nor create sampled small
      allocations.  xallocx() is in general incapable of moving small
      allocations, so this fix removes buggy code without loss of generality.
      38e2c8fa
  5. Sep 16, 2015
  6. Sep 15, 2015
  7. Sep 12, 2015
    • Jason Evans's avatar
      Fix xallocx() bugs. · 560a4e1e
      Jason Evans authored
      Fix xallocx() bugs related to the 'extra' parameter when specified as
      non-zero.
      560a4e1e
  8. Sep 10, 2015
    • Jason Evans's avatar
      Fix "prof.reset" mallctl-related corruption. · a00b1073
      Jason Evans authored
      Fix heap profiling to distinguish among otherwise identical sample sites
      with interposed resets (triggered via the "prof.reset" mallctl).  This
      bug could cause data structure corruption that would most likely result
      in a segfault.
      a00b1073
  9. Sep 02, 2015
    • Jason Evans's avatar
      Fix TLS configuration. · c0f43b65
      Jason Evans authored
      Fix TLS configuration such that it is enabled by default for platforms
      on which it works correctly.  This regression was introduced by
      ac5db020 (Make --enable-tls and
      --enable-lazy-lock take precedence over configure.ac-hardcoded
      defaults).
      c0f43b65
  10. Aug 28, 2015
    • Mike Hommey's avatar
      Fix chunk purge hook calls for in-place huge shrinking reallocation. · 6d8075f1
      Mike Hommey authored
      Fix chunk purge hook calls for in-place huge shrinking reallocation to
      specify the old chunk size rather than the new chunk size.  This bug
      caused no correctness issues for the default chunk purge function, but
      was visible to custom functions set via the "arena.<i>.chunk_hooks"
      mallctl.
      
      This resolves #264.
      6d8075f1
    • Jason Evans's avatar
      Fix arenas_cache_cleanup() and arena_get_hard(). · 30949da6
      Jason Evans authored
      Fix arenas_cache_cleanup() and arena_get_hard() to handle
      allocation/deallocation within the application's thread-specific data
      cleanup functions even after arenas_cache is torn down.
      
      This is a more general fix that complements
      45e9f66c (Fix arenas_cache_cleanup().).
      30949da6
  11. Aug 26, 2015
  12. Aug 21, 2015
    • Christopher Ferris's avatar
      Fix arenas_cache_cleanup(). · 45e9f66c
      Christopher Ferris authored
      Fix arenas_cache_cleanup() to handle allocation/deallocation within the
      application's thread-specific data cleanup functions even after
      arenas_cache is torn down.
      45e9f66c
  13. Aug 20, 2015
  14. Aug 19, 2015
    • Jason Evans's avatar
      Don't bitshift by negative amounts. · 5ef33a9f
      Jason Evans authored
      Don't bitshift by negative amounts when encoding/decoding run sizes in
      chunk header maps.  This affected systems with page sizes greater than 8
      KiB.
      
      Reported by Ingvar Hagelund <ingvar@redpill-linpro.com>.
      5ef33a9f
  15. Aug 17, 2015
  16. Aug 12, 2015
  17. Aug 04, 2015
    • Jason Evans's avatar
      Generalize chunk management hooks. · b49a334a
      Jason Evans authored
      Add the "arena.<i>.chunk_hooks" mallctl, which replaces and expands on
      the "arena.<i>.chunk.{alloc,dalloc,purge}" mallctls.  The chunk hooks
      allow control over chunk allocation/deallocation, decommit/commit,
      purging, and splitting/merging, such that the application can rely on
      jemalloc's internal chunk caching and retaining functionality, yet
      implement a variety of chunk management mechanisms and policies.
      
      Merge the chunks_[sz]ad_{mmap,dss} red-black trees into
      chunks_[sz]ad_retained.  This slightly reduces how hard jemalloc tries
      to honor the dss precedence setting; prior to this change the precedence
      setting was also consulted when recycling chunks.
      
      Fix chunk purging.  Don't purge chunks in arena_purge_stashed(); instead
      deallocate them in arena_unstash_purged(), so that the dirty memory
      linkage remains valid until after the last time it is used.
      
      This resolves #176 and #201.
      b49a334a
  18. Jul 18, 2015
  19. Jul 09, 2015
  20. Jul 07, 2015
  21. Jun 24, 2015
    • Jason Evans's avatar
      Fix size class overflow handling when profiling is enabled. · 241abc60
      Jason Evans authored
      Fix size class overflow handling for malloc(), posix_memalign(),
      memalign(), calloc(), and realloc() when profiling is enabled.
      
      Remove an assertion that erroneously caused arena_sdalloc() to fail when
      profiling was enabled.
      
      This resolves #232.
      241abc60
  22. May 06, 2015
    • Jason Evans's avatar
      Implement cache index randomization for large allocations. · 8a03cf03
      Jason Evans authored
      Extract szad size quantization into {extent,run}_quantize(), and .
      quantize szad run sizes to the union of valid small region run sizes and
      large run sizes.
      
      Refactor iteration in arena_run_first_fit() to use
      run_quantize{,_first,_next(), and add support for padded large runs.
      
      For large allocations that have no specified alignment constraints,
      compute a pseudo-random offset from the beginning of the first backing
      page that is a multiple of the cache line size.  Under typical
      configurations with 4-KiB pages and 64-byte cache lines this results in
      a uniform distribution among 64 page boundary offsets.
      
      Add the --disable-cache-oblivious option, primarily intended for
      performance testing.
      
      This resolves #13.
      8a03cf03
  23. May 01, 2015
    • Jason Evans's avatar
      Rename pprof to jeprof. · 7041720a
      Jason Evans authored
      This rename avoids installation collisions with the upstream gperftools.
      Additionally, jemalloc's per thread heap profile functionality
      introduced an incompatible file format, so it's now worthwhile to
      clearly distinguish jemalloc's version of this script from the upstream
      version.
      
      This resolves #229.
      7041720a
  24. Apr 30, 2015
  25. Mar 25, 2015
  26. Mar 24, 2015
  27. Mar 19, 2015
    • Jason Evans's avatar
      Restore --enable-ivsalloc. · e0a08a14
      Jason Evans authored
      However, unlike before it was removed do not force --enable-ivsalloc
      when Darwin zone allocator integration is enabled, since the zone
      allocator code uses ivsalloc() regardless of whether
      malloc_usable_size() and sallocx() do.
      
      This resolves #211.
      e0a08a14
  28. Mar 10, 2015
  29. Mar 31, 2014
  30. Feb 26, 2014