summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2024-11-19 10:35:17 (GMT)
committerGitHub <noreply@github.com>2024-11-19 10:35:17 (GMT)
commit30aeb00d367d0cc9e5a7603371636cddea09f1c0 (patch)
tree70460af295fd174eeee64b893ecee84132c3f66f /Python
parent899fdb213db6c5881c5f9c6760ead6fd713d2070 (diff)
downloadcpython-30aeb00d367d0cc9e5a7603371636cddea09f1c0.zip
cpython-30aeb00d367d0cc9e5a7603371636cddea09f1c0.tar.gz
cpython-30aeb00d367d0cc9e5a7603371636cddea09f1c0.tar.bz2
gh-126076: Account for relocated objects in tracemalloc (#126077)
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 9a608f0..892dc5f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -99,11 +99,7 @@
} \
_Py_DECREF_STAT_INC(); \
if (--op->ob_refcnt == 0) { \
- struct _reftracer_runtime_state *tracer = &_PyRuntime.ref_tracer; \
- if (tracer->tracer_func != NULL) { \
- void* data = tracer->tracer_data; \
- tracer->tracer_func(op, PyRefTracer_DESTROY, data); \
- } \
+ _PyReftracerTrack(op, PyRefTracer_DESTROY); \
destructor d = (destructor)(dealloc); \
d(op); \
} \