server-skynet-source-3rd-je.../jemalloc/test
Jason Evans 84c8eefeff Use bitmaps to track small regions.
The previous free list implementation, which embedded singly linked
lists in available regions, had the unfortunate side effect of causing
many cache misses during thread cache fills.  Fix this in two places:

  - arena_run_t: Use a new bitmap implementation to track which regions
                 are available.  Furthermore, revert to preferring the
                 lowest available region (as jemalloc did with its old
                 bitmap-based approach).

  - tcache_t: Move read-only tcache_bin_t metadata into
              tcache_bin_info_t, and add a contiguous array of pointers
              to tcache_t in order to track cached objects.  This
              substantially increases the size of tcache_t, but results
              in much higher data locality for common tcache operations.
              As a side benefit, it is again possible to efficiently
              flush the least recently used cached objects, so this
              change changes flushing from MRU to LRU.

The new bitmap implementation uses a multi-level summary approach to
make finding the lowest available region very fast.  In practice,
bitmaps only have one or two levels, though the implementation is
general enough to handle extremely large bitmaps, mainly so that large
page sizes can still be entertained.

Fix tcache_bin_flush_large() to always flush statistics, in the same way
that tcache_bin_flush_small() was recently fixed.

Use JEMALLOC_DEBUG rather than NDEBUG.

Add dassert(), and use it for debug-only asserts.
2011-03-17 16:29:32 -07:00
..
allocated.c Fix "thread.{de,}allocatedp" mallctl. 2011-02-13 18:11:54 -08:00
allocated.exp Add per thread allocation counters, and enhance heap sampling. 2010-10-20 17:39:18 -07:00
allocm.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
allocm.exp Add {,r,s,d}allocm(). 2010-09-17 15:46:18 -07:00
bitmap.c Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
bitmap.exp Use bitmaps to track small regions. 2011-03-17 16:29:32 -07:00
jemalloc_test.h.in Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
mremap.c Use mremap(2) for huge realloc(). 2010-11-30 16:50:58 -08:00
mremap.exp Use mremap(2) for huge realloc(). 2010-11-30 16:50:58 -08:00
posix_memalign.c Fix tests build when --with-install-suffix is set. 2010-10-07 09:53:26 -07:00
posix_memalign.exp Fix porting regressions. 2010-09-11 23:38:12 -07:00
rallocm.c Replace JEMALLOC_OPTIONS with MALLOC_CONF. 2010-10-23 18:37:06 -07:00
rallocm.exp Add {,r,s,d}allocm(). 2010-09-17 15:46:18 -07:00
thread_arena.c Fix a "thread.arena" mallctl bug. 2011-03-14 11:43:54 -07:00
thread_arena.exp Add the thread.arena mallctl. 2010-08-13 17:36:00 -07:00