- Dec 04, 2013
-
-
Jason Evans authored
Avoid referencing sbrk(2) on OS X, because it is deprecated as of OS X 10.9 (Mavericks), and the compiler warns against using it.
-
- Dec 03, 2013
-
-
Jason Evans authored
-
- Nov 30, 2013
-
-
Jason Evans authored
Clean up malloc_ncpus() by replacing incorrectly indented if..else branches with a ?: expression. Submitted by Igor Podlesny.
-
- Nov 26, 2013
-
-
Jason Evans authored
Fix rallocm() to use the specified arena for allocation, not just deallocation. Clarify ALLOCM_ARENA(a) documentation.
-
- Nov 20, 2013
-
-
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.
-
- Oct 30, 2013
-
-
Jason Evans authored
Add ids for all mallctl entries, so that external documents can link to arbitrary mallctl entries.
-
Jason Evans authored
-
- Oct 28, 2013
-
-
Jason Evans authored
-
Jason Evans authored
-
- Oct 25, 2013
-
-
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: Crestez Dan Leonard <lcrestez@ixiacom.com>
-
Leonard Crestez authored
This function causes recursive allocation on LinuxThreads. Signed-off-by: Crestez Dan Leonard <lcrestez@ixiacom.com>
-
- Oct 22, 2013
-
-
Jason Evans authored
Reported by Pat Lynch.
-
Jason Evans authored
Add a missing mutex unlock in a malloc_init_hard() error path (failed mutex initialization). In practice this bug was very unlikely to ever trigger, but if it did, application deadlock would likely result. Reported by Pat Lynch.
-
Jason Evans authored
Avoid (min < 0) comparison for unsigned min in malloc_conf_init(). This bug had no practical consequences. Reported by Pat Lynch.
-
Jason Evans authored
Reported by Pat Lynch.
-
- Oct 21, 2013
-
-
Jason Evans authored
Consistently use malloc_mutex_prefork() instead of malloc_mutex_lock() in all prefork functions.
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
-
Jason Evans authored
Fix a compiler warning in chunk_record() that was due to reading node rather than xnode. In practice this did not cause any correctness issue, but dataflow analysis in some compilers cannot tell that node and xnode are always equal in cases that the read is reached.
-
- Oct 20, 2013
-
-
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.
-
Jason Evans authored
-
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.
-
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).
-
Jason Evans authored
-
Jason Evans authored
Fix a Valgrind integration flaw that caused Valgrind warnings about reads of uninitialized memory in arena chunk headers.
-
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.
-
Jason Evans authored
Reported by Ricardo Nabinger Sanchez.
-
- Oct 14, 2013
-
-
Alexandre Perrin authored
-
- Oct 03, 2013
-
-
Jason Evans authored
-
- Aug 20, 2013
-
-
Jason Evans authored
Introduce AROUT to control whether there is space between ARFLAGS and $@. This regression was introduced by ad505e0e. Reported by Mike Hommey.
-
- Aug 19, 2013
-
-
Jory A. Pratt authored
-
- Jun 03, 2013
-
-
Jason Evans authored
-
Jason Evans authored
-
- May 07, 2013
-
-
Riku Voipio authored
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
-
- Apr 23, 2013
-
-
Jason Evans authored
Fix chunk_record() to unlock chunks_mtx before deallocating a base node, in order to avoid potential deadlock. This fix addresses the second of two similar bugs.
-
- Apr 17, 2013
-
-
Jason Evans authored
Fix chunk_record() to unlock chunks_mtx before deallocating a base node, in order to avoid potential deadlock. Reported by Tudor Bosman.
-
- Mar 20, 2013
-
-
Jason Evans authored
Clarify that malloc_conf is intended only for compile-time configuration, since jemalloc may be initialized before main() is entered.
-
- Mar 06, 2013
-
-
Jason Evans authored
-