Mailing List Archive

CVS: python/dist/src/Objects obmalloc.c,2.23,2.24
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv11358/python/Objects

Modified Files:
obmalloc.c
Log Message:
Add one more assert that indirectly interlocking conditions are consistent
with each other.


Index: obmalloc.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/obmalloc.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -d -r2.23 -r2.24
*** obmalloc.c 31 Mar 2002 02:52:29 -0000 2.23
--- obmalloc.c 31 Mar 2002 02:59:48 -0000 2.24
***************
*** 687,690 ****
--- 687,691 ----
* list in any case).
*/
+ assert(pool->ref.count > 0); /* else it was empty */
*(block **)p = lastfree = pool->freeblock;
pool->freeblock = (block *)p;