Skip to content

Commit c34c9e3

Browse files
[3.12] pythongh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (pythonGH-112885) (python#113068)
pythongh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (pythonGH-112885) The _obmalloc_usage structure is only defined if the obmalloc radix tree is enabled. (cherry picked from commit 890ce43) Co-authored-by: Neil Schemenauer <[email protected]>
1 parent 338a5a5 commit c34c9e3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Include/internal/pycore_obmalloc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,9 @@ struct _obmalloc_global_state {
665665
struct _obmalloc_state {
666666
struct _obmalloc_pools pools;
667667
struct _obmalloc_mgmt mgmt;
668+
#if WITH_PYMALLOC_RADIX_TREE
668669
struct _obmalloc_usage usage;
670+
#endif
669671
};
670672

671673

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.

0 commit comments

Comments
 (0)