Skip to content

Commit 2be4da2

Browse files
committed
Update
1 parent 84dd47b commit 2be4da2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎Include/internal/pycore_mimalloc.h‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ 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
35+
// Use 16 KiB pages instead of the default 64 KiB in 64-bit platforms.
36+
// TODO: 32-bit platforms may need tuning too.
37+
# if SIZEOF_VOID_P == 8
38+
# define MI_SEGMENT_SLICE_SHIFT 14
39+
# endif
3840
#ifdef Py_DEBUG
3941
# define MI_DEBUG 2
4042
#else

0 commit comments

Comments
 (0)