[3.10] bpo-45521: Fix a bug in the obmalloc radix tree code. (GH-29051) by miss-islington · Pull Request #29122 · python/cpython

@nascheme @miss-islington

MAP_BOT_LENGTH was incorrectly used to compute MAP_TOP_MASK instead of
MAP_TOP_LENGTH. On 64-bit machines, the error causes the tree to hold
46-bits of virtual addresses, rather than the intended 48-bits.
(cherry picked from commit 311910b)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>