]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40609: Rewrite how _tracemalloc handles domains (GH-20059)
authorVictor Stinner <vstinner@python.org>
Tue, 12 May 2020 23:36:47 +0000 (01:36 +0200)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 23:36:47 +0000 (01:36 +0200)
commit9e2ca1742076169089b818d0883688a2ddd9964a
tree048990c84f28de9f2f8b5aa0e53b861bfa1cdf83
parent3d54211e6eddc2f2586b9a20543754947c7ad325
bpo-40609: Rewrite how _tracemalloc handles domains (GH-20059)

Rewrite how the _tracemalloc module stores traces of other domains.
Rather than storing the domain inside the key, it now uses a new hash
table with the domain as the key, and the data is a per-domain traces
hash table.

* Add tracemalloc_domain hash table.
* Remove _Py_tracemalloc_config.use_domain.
* Remove pointer_t and related functions.
Include/internal/pycore_pymem.h
Modules/_tracemalloc.c