summaryrefslogtreecommitdiffstats
path: root/test/unit/prof_thread_name.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Replace tabs following #define with spaces.Jason Evans2017-01-211-4/+4
| | | | This resolves #564.
* Remove extraneous parens around return arguments.Jason Evans2017-01-211-3/+3
| | | | This resolves #540.
* Update brace style.Jason Evans2017-01-211-13/+8
| | | | | | | Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
* Remove leading blank lines from function bodies.Jason Evans2017-01-131-2/+0
| | | | This resolves #535.
* Uniformly cast mallctl[bymib]() oldp/newp arguments to (void *).Jason Evans2016-10-281-10/+12
| | | | | This avoids warnings in some cases, and is otherwise generally good hygiene.
* Avoid atexit(3) when possible, disable prof_final by default.Jason Evans2014-10-091-2/+1
| | | | | | | | | | | | atexit(3) can deadlock internally during its own initialization if jemalloc calls atexit() during jemalloc initialization. Mitigate the impact by restructuring prof initialization to avoid calling atexit() unless the registered function will actually dump a final heap profile. Additionally, disable prof_final by default so that this land mine is opt-in rather than opt-out. This resolves #144.
* Skip test_prof_thread_name_validation if !config_prof.Jason Evans2014-10-041-0/+2
|
* Implement/test/fix prof-related mallctl's.Jason Evans2014-10-041-0/+128
Implement/test/fix the opt.prof_thread_active_init, prof.thread_active_init, and thread.prof.active mallctl's. Test/fix the thread.prof.name mallctl. Refactor opt_prof_active to be read-only and move mutable state into the prof_active variable. Stop leaning on ctl-related locking for protection.