mirror of
https://github.com/python/cpython.git
synced 2025-08-25 11:15:02 +00:00
[3.13] gh-126076: Account for relocated objects in tracemalloc (GH-126077) (#127823)
(cherry picked from commit 30aeb00d36
)
This commit is contained in:
parent
78dfc28ff3
commit
eb692d945e
7 changed files with 18 additions and 25 deletions
|
@ -1121,6 +1121,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