diff options
author | Victor Stinner <vstinner@python.org> | 2025-01-15 21:22:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-15 20:22:44 +0000 |
commit | 36c5e3bcc25700645d19eba65dcdf22acd99a7a8 (patch) | |
tree | ca64b1a7a0cb8b37c35550b53f9ffd5e4dbc82b7 /Python/sysmodule.c | |
parent | 080f444a58dae1bb76a87ce746a09fd499792cfb (diff) | |
download | cpython-36c5e3bcc25700645d19eba65dcdf22acd99a7a8.tar.gz cpython-36c5e3bcc25700645d19eba65dcdf22acd99a7a8.zip |
gh-128679: Redesign tracemalloc locking (#128888)
* Use TABLES_LOCK() to protect 'tracemalloc_config.tracing'.
* Hold TABLES_LOCK() longer while accessing tables.
* tracemalloc_realloc() and tracemalloc_free() no longer
remove the trace on reentrant call.
* _PyTraceMalloc_Stop() unregisters _PyTraceMalloc_TraceRef().
* _PyTraceMalloc_GetTraces() sets the reentrant flag.
* tracemalloc_clear_traces_unlocked() sets the reentrant flag.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions