summaryrefslogtreecommitdiffstats
path: root/test/unit/prof_tctx.c
Commit message (Collapse)AuthorAgeFilesLines
* Pass alloc_ctx down profiling path.Qi Wang2017-04-121-2/+2
| | | | | | With this change, when profiling is enabled, we avoid doing redundant rtree lookups. Also changed dalloc_atx_t to alloc_atx_t, as it's now used on allocation path as well (to speed up profiling).
* Add hooking functionalityDavid Goldblatt2017-04-071-1/+1
| | | | | This allows us to hook chosen functions and do interesting things there (in particular: reentrancy checking).
* Push down iealloc() calls.Jason Evans2017-03-231-7/+2
| | | | | Call iealloc() as deep into call chains as possible without causing redundant calls.
* Use MALLOC_CONF rather than malloc_conf for tests.Jason Evans2017-02-231-4/+0
| | | | | | | | | malloc_conf does not reliably work with MSVC, which complains of "inconsistent dll linkage", i.e. its inability to support the application overriding malloc_conf when dynamically linking/loading. Work around this limitation by adding test harness support for per test shell script sourcing, and converting all tests to use MALLOC_CONF instead of malloc_conf.
* Update brace style.Jason Evans2017-01-211-4/+2
| | | | | | | Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
* Fix prof_realloc() regression.Jason Evans2017-01-171-0/+57
Mostly revert the prof_realloc() changes in 498856f44a30b31fe713a18eb2fc7c6ecf3a9f63 (Move slabs out of chunks.) so that prof_free_sampled_object() is called when appropriate. Leave the prof_tctx_[re]set() optimization in place, but add an assertion to verify that all eight cases are correctly handled. Add a comment to make clear the code ordering, so that the regression originally fixed by ea8d97b8978a0c0423f0ed64332463a25b787c3d (Fix prof_{malloc,free}_sample_object() call order in prof_realloc().) is not repeated. This resolves #499.