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
d8953cb8
Commit
d8953cb8
authored
Apr 06, 1995
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change in counting freed objects
parent
91e7a0bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Objects/object.c
Objects/object.c
+4
-4
No files found.
Objects/object.c
View file @
d8953cb8
...
...
@@ -61,7 +61,7 @@ inc_count(tp)
typeobject
*
tp
;
{
if
(
tp
->
tp_alloc
==
0
)
{
/* first time;
hang
in linked list */
/* first time;
insert
in linked list */
if
(
tp
->
tp_next
!=
NULL
)
/* sanity check */
fatal
(
"XXX inc_count sanity check"
);
tp
->
tp_next
=
type_list
;
...
...
@@ -490,6 +490,9 @@ UNREF(op)
op
->
_ob_next
->
_ob_prev
=
op
->
_ob_prev
;
op
->
_ob_prev
->
_ob_next
=
op
->
_ob_next
;
op
->
_ob_next
=
op
->
_ob_prev
=
NULL
;
#ifdef COUNT_ALLOCS
op
->
ob_type
->
tp_free
++
;
#endif
}
DELREF
(
op
)
...
...
@@ -497,9 +500,6 @@ DELREF(op)
{
destructor
dealloc
=
op
->
ob_type
->
tp_dealloc
;
UNREF
(
op
);
#ifdef COUNT_ALLOCS
op
->
ob_type
->
tp_free
++
;
#endif
op
->
ob_type
=
NULL
;
(
*
dealloc
)(
op
);
}
...
...
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