summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2014-01-12 23:05:44 (GMT)
committerJason Evans <je@fb.com>2014-01-12 23:41:05 (GMT)
commitb2c31660be917ea6d59cd54e6f650b06b5e812ed (patch)
tree2642e518d63ce4ebd4e50f074ab0a425fa1497ba /README
parent6b694c4d47278cddfaaedeb7ee49fa5757e35ed5 (diff)
downloadjemalloc-b2c31660be917ea6d59cd54e6f650b06b5e812ed.zip
jemalloc-b2c31660be917ea6d59cd54e6f650b06b5e812ed.tar.gz
jemalloc-b2c31660be917ea6d59cd54e6f650b06b5e812ed.tar.bz2
Extract profiling code from [re]allocation functions.
Extract profiling code from malloc(), imemalign(), calloc(), realloc(), mallocx(), rallocx(), and xallocx(). This slightly reduces the amount of code compiled into the fast paths, but the primary benefit is the combinatorial complexity reduction. Simplify iralloc[t]() by creating a separate ixalloc() that handles the no-move cases. Further simplify [mrxn]allocx() (and by implication [mrn]allocm()) to make request size overflows due to size class and/or alignment constraints trigger undefined behavior (detected by debug-only assertions). Report ENOMEM rather than EINVAL if an OOM occurs during heap profiling backtrace creation in imemalign(). This bug impacted posix_memalign() and aligned_alloc().
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions