[Python-checkins] python/dist/src/Modules gcmodule.c,2.44,2.45

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
Fri, 28 Jun 2002 12:16:07 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv29051/Modules

Modified Files:
	gcmodule.c 
Log Message:
Fix small bug.  The count of objects in all generations younger then the
collected one should be zeroed.


Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.44
retrieving revision 2.45
diff -C2 -d -r2.44 -r2.45
*** gcmodule.c	13 Jun 2002 20:32:49 -0000	2.44
--- gcmodule.c	28 Jun 2002 19:16:04 -0000	2.45
***************
*** 397,401 ****
  		generations[generation+1].count += 1;
  	for (i = 0; i <= generation; i++)
! 		generations[generation].count = 0;
  
  	/* merge younger generations with one we are currently collecting */
--- 397,401 ----
  		generations[generation+1].count += 1;
  	for (i = 0; i <= generation; i++)
! 		generations[i].count = 0;
  
  	/* merge younger generations with one we are currently collecting */