Take locality into consideration when doing GC flush

This commit is contained in:
Shirui Cheng 2024-08-01 13:20:11 -07:00 committed by Qi Wang
parent 14d5dc136a
commit e2c9f3a9ce
2 changed files with 213 additions and 4 deletions

View file

@ -23,5 +23,6 @@ typedef struct tcaches_s tcaches_t;
#define TCACHE_MAXCLASS_LIMIT ((size_t)1 << TCACHE_LG_MAXCLASS_LIMIT)
#define TCACHE_NBINS_MAX (SC_NBINS + SC_NGROUP * \
(TCACHE_LG_MAXCLASS_LIMIT - SC_LG_LARGE_MINCLASS) + 1)
#define TCACHE_GC_NEIGHBOR_LIMIT ((uintptr_t)1 << 21) /* 2M */
#endif /* JEMALLOC_INTERNAL_TCACHE_TYPES_H */