Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
7405d5e0
Commit
7405d5e0
authored
Apr 01, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only subtract one from _Py_RefTotal.
PyDict_DelItem() will undo the other INCREF.
parent
f3a22c9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
+9
-12
src/Persistence/cPickleCache.c
src/Persistence/cPickleCache.c
+3
-4
src/ZODB/cPickleCache.c
src/ZODB/cPickleCache.c
+3
-4
src/persistent/cPickleCache.c
src/persistent/cPickleCache.c
+3
-4
No files found.
src/Persistence/cPickleCache.c
View file @
7405d5e0
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.7
5 2003/04/01 15:51:01
jeremy Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.7
6 2003/04/01 16:01:54
jeremy Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
_Py_NewReference
(
v
);
_Py_NewReference
(
v
);
/* Don't increment total refcount as a result of the
/* Don't increment total refcount as a result of the
shenanigans played in this function. The _Py_NewReference()
shenanigans played in this function. The _Py_NewReference()
call above and the Py_INCREF() below both create artificial
call above creates artificial references to v.
references to v.
*/
*/
_Py_RefTotal
-=
2
;
_Py_RefTotal
--
;
/* XXX it may be a problem that v->ob_type is still NULL?
/* XXX it may be a problem that v->ob_type is still NULL?
I don't understand what this comment means. --jeremy */
I don't understand what this comment means. --jeremy */
assert
(
v
->
ob_type
);
assert
(
v
->
ob_type
);
...
...
src/ZODB/cPickleCache.c
View file @
7405d5e0
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.7
5 2003/04/01 15:51:01
jeremy Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.7
6 2003/04/01 16:01:54
jeremy Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
_Py_NewReference
(
v
);
_Py_NewReference
(
v
);
/* Don't increment total refcount as a result of the
/* Don't increment total refcount as a result of the
shenanigans played in this function. The _Py_NewReference()
shenanigans played in this function. The _Py_NewReference()
call above and the Py_INCREF() below both create artificial
call above creates artificial references to v.
references to v.
*/
*/
_Py_RefTotal
-=
2
;
_Py_RefTotal
--
;
/* XXX it may be a problem that v->ob_type is still NULL?
/* XXX it may be a problem that v->ob_type is still NULL?
I don't understand what this comment means. --jeremy */
I don't understand what this comment means. --jeremy */
assert
(
v
->
ob_type
);
assert
(
v
->
ob_type
);
...
...
src/persistent/cPickleCache.c
View file @
7405d5e0
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
...
@@ -88,7 +88,7 @@ process must skip such objects, rather than deactivating them.
static
char
cPickleCache_doc_string
[]
=
static
char
cPickleCache_doc_string
[]
=
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"Defines the PickleCache used by ZODB Connection objects.
\n
"
"
\n
"
"
\n
"
"$Id: cPickleCache.c,v 1.7
5 2003/04/01 15:51:01
jeremy Exp $
\n
"
;
"$Id: cPickleCache.c,v 1.7
6 2003/04/01 16:01:54
jeremy Exp $
\n
"
;
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define ASSIGN(V,E) {PyObject *__e; __e=(E); Py_XDECREF(V); (V)=__e;}
#define UNLESS(E) if(!(E))
#define UNLESS(E) if(!(E))
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
...
@@ -503,10 +503,9 @@ cc_oid_unreferenced(ccobject *self, PyObject *oid)
_Py_NewReference
(
v
);
_Py_NewReference
(
v
);
/* Don't increment total refcount as a result of the
/* Don't increment total refcount as a result of the
shenanigans played in this function. The _Py_NewReference()
shenanigans played in this function. The _Py_NewReference()
call above and the Py_INCREF() below both create artificial
call above creates artificial references to v.
references to v.
*/
*/
_Py_RefTotal
-=
2
;
_Py_RefTotal
--
;
/* XXX it may be a problem that v->ob_type is still NULL?
/* XXX it may be a problem that v->ob_type is still NULL?
I don't understand what this comment means. --jeremy */
I don't understand what this comment means. --jeremy */
assert
(
v
->
ob_type
);
assert
(
v
->
ob_type
);
...
...
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