summaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal/background_thread_externs.h
Commit message (Collapse)AuthorAgeFilesLines
* Only abort on dlsym when necessary.Qi Wang2017-06-141-0/+1
| | | | | If neither background_thread nor lazy_lock is in use, do not abort on dlsym errors.
* Move background thread creation to background_thread_0.Qi Wang2017-06-121-2/+0
| | | | | To avoid complications, avoid invoking pthread_create "internally", instead rely on thread0 to launch new threads, and also terminating threads when asked.
* Set isthreaded when enabling background_thread.Qi Wang2017-06-021-0/+1
|
* Refactor/fix background_thread/percpu_arena bootstrapping.Jason Evans2017-06-011-4/+4
| | | | | Refactor bootstrapping such that dlsym() is called during the bootstrapping phase that can tolerate reentrant allocation.
* Add background thread related stats.Qi Wang2017-05-231-0/+2
|
* Implementing opt.background_thread.Qi Wang2017-05-231-0/+29
Added opt.background_thread to enable background threads, which handles purging currently. When enabled, decay ticks will not trigger purging (which will be left to the background threads). We limit the max number of threads to NCPUs. When percpu arena is enabled, set CPU affinity for the background threads as well. The sleep interval of background threads is dynamic and determined by computing number of pages to purge in the future (based on backlog).