summaryrefslogtreecommitdiffstats
path: root/src/jemalloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a prof-related bug in realloc().Jason Evans2011-08-311-3/+8
| | | | | Fix realloc() such that it only records the object passed in as freed if no OOM error occurs.
* Add missing prof_malloc() call in allocm().Jason Evans2011-08-131-3/+2
| | | | | | Add a missing prof_malloc() call in allocm(). Before this fix, negative object/byte counts could be observed in heap profiles for applications that use allocm().
* Fix off-by-one backtracing issues.Jason Evans2011-08-121-13/+36
| | | | | | | | | | | | Rewrite prof_alloc_prep() as a cpp macro, PROF_ALLOC_PREP(), in order to remove any doubt as to whether an additional stack frame is created. Prior to this change, it was assumed that inlining would reduce the total number of frames in the backtrace, but in practice behavior wasn't completely predictable. Create imemalign() and call it from posix_memalign(), memalign(), and valloc(), so that all entry points require the same number of stack frames to be ignored during backtracing.
* Conditionalize an isalloc() call in rallocm().Jason Evans2011-08-121-2/+2
| | | | Conditionalize an isalloc() call in rallocm() that be unnecessary.
* Fix two prof-related bugs in rallocm().Jason Evans2011-08-121-3/+10
| | | | | | | Properly handle boundary conditions for sampled region promotion in rallocm(). Prior to this fix, some combinations of 'size' and 'extra' values could cause erroneous behavior. Additionally, size class recording for promoted regions was incorrect.
* Move repo contents in jemalloc/ to top level.Jason Evans2011-04-011-0/+1847