| 6 | #include "jemalloc/internal/fb.h" |
| 7 | |
| 8 | void |
| 9 | psset_init(psset_t *psset) { |
| 10 | for (unsigned i = 0; i < PSSET_NPSIZES; i++) { |
| 11 | hpdata_age_heap_new(&psset->pageslabs[i]); |
| 12 | } |
| 13 | fb_init(psset->pageslab_bitmap, PSSET_NPSIZES); |
| 14 | memset(&psset->merged_stats, 0, sizeof(psset->merged_stats)); |
| 15 | memset(&psset->stats, 0, sizeof(psset->stats)); |
| 16 | hpdata_empty_list_init(&psset->empty); |
| 17 | for (int i = 0; i < PSSET_NPURGE_LISTS; i++) { |
| 18 | hpdata_purge_list_init(&psset->to_purge[i]); |
| 19 | } |
| 20 | fb_init(psset->purge_bitmap, PSSET_NPURGE_LISTS); |
| 21 | hpdata_hugify_list_init(&psset->to_hugify); |
| 22 | } |
| 23 | |
| 24 | static void |
| 25 | psset_bin_stats_accum(psset_bin_stats_t *dst, psset_bin_stats_t *src) { |
no test coverage detected