Module Name: src Committed By: christos Date: Sat Feb 1 16:26:58 UTC 2025
Modified Files: src/external/bsd/jemalloc/include/jemalloc/internal: jemalloc_internal_defs.h Log Message: fix the definition of LG_PAGE To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 \ src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h diff -u src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h:1.18 src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h:1.19 --- src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h:1.18 Fri Jan 31 17:32:12 2025 +++ src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h Sat Feb 1 11:26:58 2025 @@ -211,7 +211,14 @@ /* #undef LG_QUANTUM */ /* One page is 2^LG_PAGE bytes. */ -#define LG_PAGE 12 +#include <machine/vmparam.h> +#if defined(MAX_PAGE_SHIFT) +#define LG_PAGE MAX_PAGE_SHIFT +#elif defined(PAGE_SHIFT) +#define LG_PAGE PAGE_SHIFT +#else +#error "PAGE_SHIFT is not defined" +#endif /* Maximum number of regions in a slab. */ /* #undef CONFIG_LG_SLAB_MAXREGS */