Wilco Dijkstra 3f6bb8a32e Add single-threaded path to malloc/realloc/calloc/memalloc
This patch adds a single-threaded fast path to malloc, realloc,
calloc and memalloc.  When we're single-threaded, we can bypass
arena_get (which always locks the arena it returns) and just use
the main arena.  Also avoid retrying a different arena since
there is just the main arena.

	* malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
	(__libc_realloc): Likewise.
	(_mid_memalign): Likewise.
	(__libc_calloc): Likewise.
2017-10-24 12:39:24 +01:00
..
2017-10-17 18:55:16 +01:00
2017-05-30 18:27:57 -03:00
2014-01-02 09:40:10 +01:00
2017-08-08 17:14:49 +00:00
2017-05-30 18:27:57 -03:00
2017-01-05 17:39:38 +00:00
2017-05-30 18:27:57 -03:00
2007-12-16 22:57:57 +00:00