mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +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
|
@ -1129,6 +1129,7 @@ resize_compact(PyObject *unicode, Py_ssize_t length)
|
|||
#ifdef Py_TRACE_REFS
|
||||
_Py_ForgetReference(unicode);
|
||||
#endif
|
||||
_PyReftracerTrack(unicode, PyRefTracer_DESTROY);
|
||||
|
||||
new_unicode = (PyObject *)PyObject_Realloc(unicode, new_size);
|
||||
if (new_unicode == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue