]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112867: fix for WITH_PYMALLOC_RADIX_TREE=0 (GH-112885)
authorNeil Schemenauer <nas-github@arctrix.com>
Sat, 9 Dec 2023 21:50:48 +0000 (13:50 -0800)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2023 21:50:48 +0000 (13:50 -0800)
The _obmalloc_usage structure is only defined if the obmalloc radix tree
is enabled.

Include/internal/pycore_obmalloc.h
Misc/NEWS.d/next/Build/2023-12-08-11-33-37.gh-issue-112867.ZzDfXQ.rst [new file with mode: 0644]

index b0dbf53d4e3d15244f9399e6d92a42968b334518..17572dba65487d330f1d603ba14b74e1f6b561da 100644 (file)
@@ -665,7 +665,9 @@ struct _obmalloc_global_state {
 struct _obmalloc_state {
     struct _obmalloc_pools pools;
     struct _obmalloc_mgmt mgmt;
+#if WITH_PYMALLOC_RADIX_TREE
     struct _obmalloc_usage usage;
+#endif
 };
 
 
diff --git a/Misc/NEWS.d/next/Build/2023-12-08-11-33-37.gh-issue-112867.ZzDfXQ.rst b/Misc/NEWS.d/next/Build/2023-12-08-11-33-37.gh-issue-112867.ZzDfXQ.rst
new file mode 100644 (file)
index 0000000..a368148
--- /dev/null
@@ -0,0 +1 @@
+Fix the build for the case that WITH_PYMALLOC_RADIX_TREE=0 set.