Skip to content

Commit 2e2a547

Browse files
committed
gh-113141: Tune MI_SEGMENT_SLICE_SHIFT to 14 for using 16 Kib pages
1 parent 5b55b50 commit 2e2a547

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Include/internal/pycore_mimalloc.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ typedef enum {
3232
# define MI_NO_THP 1
3333
// Do not use guarded allocations. The free-threaded GC does not support their block layout.
3434
# define MI_GUARDED 0
35+
// Use 16 KiB pages instead of 64 KiB pages.
36+
// Original value was 16.
37+
# define MI_SEGMENT_SLICE_SHIFT 14
3538
#ifdef Py_DEBUG
3639
# define MI_DEBUG 2
3740
#else

0 commit comments

Comments
 (0)