[Python-checkins] CVS: python/dist/src/Objects obmalloc.c,2.26,2.27

Tim Peters tim_one@users.sourceforge.net
2002年4月01日 12:13:01 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv22589/python/Objects
Modified Files:
	obmalloc.c 
Log Message:
Fixed errors in two comments.
Index: obmalloc.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/obmalloc.c,v
retrieving revision 2.26
retrieving revision 2.27
diff -C2 -d -r2.26 -r2.27
*** obmalloc.c	1 Apr 2002 19:23:44 -0000	2.26
--- obmalloc.c	1 Apr 2002 20:12:59 -0000	2.27
***************
*** 1209,1213 ****
 	ulong numfreeblocks[SMALL_REQUEST_THRESHOLD >> ALIGNMENT_SHIFT];
 	ulong grandtotal;	/* total # of allocated bytes */
! 	ulong freegrandtotal;	/* total # of available bytes in used blocks */
 
 	fprintf(stderr, "%u arenas * %d bytes/arena = %lu total bytes.\n",
--- 1209,1213 ----
 	ulong numfreeblocks[SMALL_REQUEST_THRESHOLD >> ALIGNMENT_SHIFT];
 	ulong grandtotal;	/* total # of allocated bytes */
! 	ulong freegrandtotal;	/* total # of available bytes in used pools */
 
 	fprintf(stderr, "%u arenas * %d bytes/arena = %lu total bytes.\n",
***************
*** 1221,1226 ****
 		numpools[i] = numblocks[i] = numfreeblocks[i] = 0;
 
! 	/* Because empty pools aren't linked to from anything, it's easiest
! 	 * to march over all the arenas.
 	 */
 	for (i = 0; i < narenas; ++i) {
--- 1221,1227 ----
 		numpools[i] = numblocks[i] = numfreeblocks[i] = 0;
 
! 	/* Because full pools aren't linked to from anything, it's easiest
! 	 * to march over all the arenas. If we're lucky, most of the memory
! 	 * will be living in full pools -- would be a shame to miss them.
 	 */
 	for (i = 0; i < narenas; ++i) {

AltStyle によって変換されたページ (->オリジナル) /