Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 890ce43

Browse files
authored
gh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (GH-112885)
The _obmalloc_usage structure is only defined if the obmalloc radix tree is enabled.
1 parent c1652d6 commit 890ce43

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)