[Python-checkins] r45433 - python/trunk/Python/pyarena.c

martin.v.loewis python-checkins at python.org
Sat Apr 15 14:46:09 CEST 2006


Author: martin.v.loewis
Date: Sat Apr 15 14:46:09 2006
New Revision: 45433

Modified:
   python/trunk/Python/pyarena.c
Log:
Fix sys.getobjects(0): we get a reference to the
arena's "private" list of objects, so there might
be two references to that list.


Modified: python/trunk/Python/pyarena.c
==============================================================================
--- python/trunk/Python/pyarena.c	(original)
+++ python/trunk/Python/pyarena.c	Sat Apr 15 14:46:09 2006
@@ -171,7 +171,10 @@
         */
 #endif
 	block_free(arena->a_head);
+	/* This property normally holds, except when the code being compiled
+	   is sys.getobjects(0), in which case there will be two references.
         assert(arena->a_objects->ob_refcnt == 1);
+	*/
 
         /* Clear all the elements from the list.  This is necessary
            to guarantee that they will be DECREFed. */


More information about the Python-checkins mailing list