Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ce20967c
Commit
ce20967c
authored
Sep 15, 2000
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't remove instance objects from the GC container set until we are
they are dead. Fixes bug #113812.
parent
e64572bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Objects/classobject.c
Objects/classobject.c
+1
-2
No files found.
Objects/classobject.c
View file @
ce20967c
...
...
@@ -490,7 +490,6 @@ instance_dealloc(register PyInstanceObject *inst)
#ifdef Py_TRACE_REFS
extern
long
_Py_RefTotal
;
#endif
PyObject_GC_Fini
(
inst
);
/* Call the __del__ method if it exists. First temporarily
revive the object and save the current exception, if any. */
#ifdef Py_TRACE_REFS
...
...
@@ -523,7 +522,6 @@ instance_dealloc(register PyInstanceObject *inst)
#ifdef COUNT_ALLOCS
inst
->
ob_type
->
tp_free
--
;
#endif
PyObject_GC_Init
((
PyObject
*
)
inst
);
return
;
/* __del__ added a reference; don't delete now */
}
#ifdef Py_TRACE_REFS
...
...
@@ -535,6 +533,7 @@ instance_dealloc(register PyInstanceObject *inst)
inst
->
ob_type
=
NULL
;
#endif
#endif
/* Py_TRACE_REFS */
PyObject_GC_Fini
(
inst
);
Py_DECREF
(
inst
->
in_class
);
Py_XDECREF
(
inst
->
in_dict
);
inst
=
(
PyInstanceObject
*
)
PyObject_AS_GC
(
inst
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment