MCPcopy Create free account
hub / github.com/beefytech/Beef / psset_init

Function psset_init

BeefRT/JEMalloc/src/psset.c:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "jemalloc/internal/fb.h"
7
8void
9psset_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
24static void
25psset_bin_stats_accum(psset_bin_stats_t *dst, psset_bin_stats_t *src) {

Callers 1

hpa_shard_initFunction · 0.85

Calls 1

fb_initFunction · 0.85

Tested by

no test coverage detected