Base: Pull into a single header.

This commit is contained in:
David T. Goldblatt
2020-02-17 12:00:57 -08:00
committed by David Goldblatt
parent 34b7165fde
commit 182192f83c
7 changed files with 114 additions and 72 deletions

View File

@@ -7,6 +7,15 @@
#include "jemalloc/internal/mutex.h"
#include "jemalloc/internal/sz.h"
/*
* In auto mode, arenas switch to huge pages for the base allocator on the
* second base block. a0 switches to thp on the 5th block (after 20 megabytes
* of metadata), since more metadata (e.g. rtree nodes) come from a0's base.
*/
#define BASE_AUTO_THP_THRESHOLD 2
#define BASE_AUTO_THP_THRESHOLD_A0 5
/******************************************************************************/
/* Data. */