server-skynet-source-3rd-je.../src
Daniel Micay f8034540a1 Implement in-place huge allocation shrinking.
Trivial example:

    #include <stdlib.h>

    int main(void) {
        void *ptr = malloc(1024 * 1024 * 8);
        if (!ptr) return 1;
        ptr = realloc(ptr, 1024 * 1024 * 4);
        if (!ptr) return 1;
    }

Before:

    mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcfff000000
    mmap(NULL, 4194304, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcffec00000
    madvise(0x7fcfff000000, 8388608, MADV_DONTNEED) = 0

After:

    mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1934800000
    madvise(0x7f1934c00000, 4194304, MADV_DONTNEED) = 0

Closes #134
2014-10-01 16:55:03 -07:00
..
arena.c Move small run metadata into the arena chunk header. 2014-09-29 01:31:39 -07:00
atomic.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
base.c Refactor huge allocation to be managed by arenas. 2014-05-15 22:36:41 -07:00
bitmap.c Implement compile-time bitmap size computation. 2014-09-28 14:43:11 -07:00
chunk_dss.c Optimize Valgrind integration. 2014-04-15 16:49:57 -07:00
chunk_mmap.c Add check for madvise(2) to configure.ac. 2014-06-03 09:32:49 -07:00
chunk.c Refactor chunk map. 2014-09-04 22:22:52 -07:00
ckh.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
ctl.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
extent.c Reduce cpp conditional logic complexity. 2012-02-10 20:22:09 -08:00
hash.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
huge.c Implement in-place huge allocation shrinking. 2014-10-01 16:55:03 -07:00
jemalloc.c Mark malloc_conf as a weak symbol 2014-09-29 15:05:55 -07:00
mb.c Move repo contents in jemalloc/ to top level. 2011-03-31 20:36:17 -07:00
mutex.c Normalize #define whitespace. 2013-12-08 22:28:27 -08:00
prof.c Fix profile dumping race. 2014-09-24 22:23:43 -07:00
quarantine.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
rtree.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
stats.c Implement per thread heap profiling. 2014-08-19 21:31:16 -07:00
tcache.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
tsd.c Convert all tsd variables to reside in a single tsd structure. 2014-09-23 02:36:08 -07:00
util.c Fix -Wsometimes-uninitialized warnings 2014-06-02 07:53:52 -07:00
valgrind.c Optimize Valgrind integration. 2014-04-15 16:49:57 -07:00
zone.c Whitespace cleanups. 2014-09-04 22:27:26 -07:00