]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37448: Use radix tree for pymalloc address_in_range(). (GH-14474)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 30 Mar 2021 02:51:15 +0000 (19:51 -0700)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 02:51:15 +0000 (19:51 -0700)
commit85b6b70589c187639aeebc560d67e9cc04abb4d8
treed8142d0876fd549e4b25743f869676d7dfe95be7
parenta54fc683f237d8f0b6e999a63aa9b8c0a45b7fef
bpo-37448: Use radix tree for pymalloc address_in_range(). (GH-14474)

The radix tree approach is a relatively simple and memory sanitary
alternative to the old (slightly) unsanitary address_in_range().
To disable the radix tree map, set a preprocessor flag as follows:
-DWITH_PYMALLOC_RADIX_TREE=0.

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2021-02-21-14-19-35.bpo-37448.btl7vO.rst [new file with mode: 0644]
Objects/obmalloc.c