Skip to content

Commit

Permalink
[3.9] pythongh-87759 bpo-37448: Use radix tree for pymalloc address_i…
Browse files Browse the repository at this point in the history
…n_range(). (pythonGH-14474)

This is a backport of the radix tree implementation for pymalloc.
It is not platform specific but it solves a segmentation fault on
aarch64 platforms when MTE (Memory Tag Extension) is enabled.
The github issue is pythongh-87759.

Original commit message:
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.

(cherry picked from commit 85b6b70)

Co-authored-by: Tim Peters <tim.peters@gmail.com>
Jira: ENTLLT-7122
Change-Id: Ifbc8c1290077b78c85ac30abe0bcbb7c8ea0b959
  • Loading branch information
2 people authored and diegorusso committed Jan 5, 2024
1 parent 300d315 commit 7b2cfca
Showing 1 changed file with 336 additions and 5 deletions.
Loading

0 comments on commit 7b2cfca

Please sign in to comment.