Skip to content
  1. Dec 04, 2013
  2. Dec 03, 2013
  3. Nov 30, 2013
    • Jason Evans's avatar
      Clean up malloc_ncpus(). · addad093
      Jason Evans authored
      Clean up malloc_ncpus() by replacing incorrectly indented if..else
      branches with a ?: expression.
      
      Submitted by Igor Podlesny.
      addad093
  4. Nov 26, 2013
  5. Nov 20, 2013
    • Jason Evans's avatar
      Fix a potential infinite loop during thread exit. · d6df9143
      Jason Evans authored
      Fix malloc_tsd_dalloc() to bypass tcache when dallocating, so that there
      is no danger of causing tcache reincarnation during thread exit.
      Whether this infinite loop occurs depends on the pthreads TSD
      implementation; it is known to occur on Solaris.
      
      Submitted by Markus Eberspächer.
      d6df9143
  6. Oct 30, 2013
  7. Oct 28, 2013
  8. Oct 25, 2013
    • Leonard Crestez's avatar
      Add support for LinuxThreads. · cb17fc6a
      Leonard Crestez authored
      
      
      When using LinuxThreads pthread_setspecific triggers recursive
      allocation on all threads. Work around this by creating a global linked
      list of in-progress tsd initializations.
      
      This modifies the _tsd_get_wrapper macro-generated function. When it has
      to initialize an TSD object it will push the item to the linked list
      first. If this causes a recursive allocation then the _get_wrapper
      request is satisfied from the list. When pthread_setspecific returns the
      item is removed from the list.
      
      This effectively adds a very poor substitute for real TLS used only
      during pthread_setspecific allocation recursion.
      
      Signed-off-by: default avatarCrestez Dan Leonard <lcrestez@ixiacom.com>
      cb17fc6a
    • Leonard Crestez's avatar
      Delay pthread_atfork registering. · ac4403ca
      Leonard Crestez authored
      
      
      This function causes recursive allocation on LinuxThreads.
      
      Signed-off-by: default avatarCrestez Dan Leonard <lcrestez@ixiacom.com>
      ac4403ca
  9. Oct 22, 2013
  10. Oct 21, 2013
  11. Oct 20, 2013
    • Jason Evans's avatar
      Fix a race condition in the "arenas.extend" mallctl. · 7b65180b
      Jason Evans authored
      Fix a race condition in the "arenas.extend" mallctl that could lead to
      internal data structure corruption.  The race could be hit if one
      thread called the "arenas.extend" mallctl while another thread
      concurrently triggered initialization of one of the lazily created
      arenas.
      7b65180b
    • Jason Evans's avatar
      Fix an off-by-one flaw in a test. · 0f1d8ec3
      Jason Evans authored
      0f1d8ec3
    • Jason Evans's avatar
      Fix dangerous casts in tests. · 8edaf86b
      Jason Evans authored
      Fix dangerous casts of int variables to pointers in thread join function
      calls.  On LP64 systems, int and pointers are different sizes, so
      writes can corrupt memory.
      8edaf86b
    • Jason Evans's avatar
      Fix a Valgrind integration flaw. · dda90f59
      Jason Evans authored
      Fix a Valgrind integration flaw that caused Valgrind warnings about
      reads of uninitialized memory in internal zero-initialized data
      structures (relevant to tcache and prof code).
      dda90f59
    • 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
  12. Oct 14, 2013
  13. Oct 03, 2013
  14. 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
  15. Aug 19, 2013
  16. Jun 03, 2013
  17. May 07, 2013
  18. Apr 23, 2013
  19. Apr 17, 2013
  20. 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
  21. Mar 06, 2013