[Zope-CVS] CVS: ZODB - NEWS.txt:1.8

Tim Peters tim.one at comcast.net
Fri May 7 15:11:30 EDT 2004


Update of /cvs-repository/ZODB
In directory cvs.zope.org:/tmp/cvs-serv21371

Modified Files:
	NEWS.txt 
Log Message:
Collector 1309: ZODB.DB.DB.cacheExtremeDetail reports wrong reference count

The refcount reported for a ghost was one too small, because the code for
ghosts and non-ghosts was the same, and presumably "it's a feature" that
the code for non-ghosts deliberately lies about the true Python refcount,
in order (guessing here) to report what the count would have been if the
cPickleCache didn't exist.  But while the cPickleCache holds on to a real
reference to non-ghost objects, it does not hold a real reference to ghost
objects, so subtracting "an extra" count for all objects made it appear
that non-referenced ghosts exist in the cache (which doesn't actually
happen).

What a tangled web we weave ...


=== ZODB/NEWS.txt 1.7 => 1.8 ===
--- ZODB/NEWS.txt:1.7	Mon May  3 15:06:29 2004
+++ ZODB/NEWS.txt	Fri May  7 15:10:59 2004
@@ -9,6 +9,8 @@
 longer existed after the MVCC changes.  Repaired that, and added new
 tests to ensure it continues working.
 
+Collector #1309:  The reference counts reported by DB.cacheExtremeDetails()
+for ghosts were one too small.
 
 
 What's new in ZODB3 3.3 alpha 3




More information about the Zope-CVS mailing list