mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
gh-126076: Account for relocated objects in tracemalloc (#126077)
This commit is contained in:
parent
899fdb213d
commit
30aeb00d36
7 changed files with 18 additions and 25 deletions
|
@ -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); \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue