server-skynet-source-3rd-je.../src
Daniel Micay 4cfe55166e Add support for sized deallocation.
This adds a new `sdallocx` function to the external API, allowing the
size to be passed by the caller.  It avoids some extra reads in the
thread cache fast path.  In the case where stats are enabled, this
avoids the work of calculating the size from the pointer.

An assertion validates the size that's passed in, so enabling debugging
will allow users of the API to debug cases where an incorrect size is
passed in.

The performance win for a contrived microbenchmark doing an allocation
and immediately freeing it is ~10%.  It may have a different impact on a
real workload.

Closes #28
2014-09-08 17:34:24 -07:00
..
arena.c Optimize [nmd]alloc() fast paths. 2014-09-07 14:40:19 -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 Normalize #define whitespace. 2013-12-08 22:28:27 -08: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 Fix inline-related macro issues. 2013-12-10 14:35:34 -08:00
ctl.c Implement per thread heap profiling. 2014-08-19 21:31:16 -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 Optimize [nmd]alloc() fast paths. 2014-09-07 14:40:19 -07:00
jemalloc.c Add support for sized deallocation. 2014-09-08 17:34:24 -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 Implement per thread heap profiling. 2014-08-19 21:31:16 -07:00
quarantine.c Remove the "opt.valgrind" mallctl. 2014-04-15 14:33:50 -07:00
rtree.c Try to use __builtin_ffsl if ffsl is unavailable. 2014-06-02 07:44:50 -07:00
stats.c Implement per thread heap profiling. 2014-08-19 21:31:16 -07:00
tcache.c Refactor chunk map. 2014-09-04 22:22:52 -07:00
tsd.c Implement the *allocx() API. 2013-12-12 22:35:52 -08: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