mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).
The fix makes it possible to call PyObject_GC_UnTrack() more than once on the same object, and then move the PyObject_GC_UnTrack() call to *before* the trashcan code is invoked. BUGFIX CANDIDATE!
This commit is contained in:
parent
31f8483eef
commit
ff413af605
5 changed files with 7 additions and 5 deletions
|
@ -139,8 +139,8 @@ tupledealloc(register PyTupleObject *op)
|
|||
{
|
||||
register int i;
|
||||
register int len = op->ob_size;
|
||||
PyObject_GC_UnTrack(op);
|
||||
Py_TRASHCAN_SAFE_BEGIN(op)
|
||||
_PyObject_GC_UNTRACK(op);
|
||||
if (len > 0) {
|
||||
i = len;
|
||||
while (--i >= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue