mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -966,6 +966,7 @@ _PyTuple_Resize(PyObject **pv, Py_ssize_t newsize)
|
|||
for (i = newsize; i < oldsize; i++) {
|
||||
Py_CLEAR(v->ob_item[i]);
|
||||
}
|
||||
_PyReftracerTrack((PyObject *)v, PyRefTracer_DESTROY);
|
||||
sv = PyObject_GC_Resize(PyTupleObject, v, newsize);
|
||||
if (sv == NULL) {
|
||||
*pv = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue