History log of /external/jemalloc/test/integration/sdallocx.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ded4f38ffd64144158ffe600a3309b3339800cf4 12-Nov-2016 Jason Evans <jasone@canonware.com> Reduce memory usage for sdallocx() test_alignment_and_size.
/external/jemalloc/test/integration/sdallocx.c
4cfe55166e0173be745c53adb0fecf50d11d1227 28-Aug-2014 Daniel Micay <danielmicay@gmail.com> 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
/external/jemalloc/test/integration/sdallocx.c