CVS: sml/src/runtime/gc flip.c,1.5,1.6

John Reppy <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj.commits
Message-ID <[email protected]>
Update of /cvsroot/smlnj/sml/src/runtime/gc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4647/gc

Modified Files:
	flip.c 
Log Message:
  Change in sizing calculation to reduce number of major GCs.


Index: flip.c
===================================================================
RCS file: /cvsroot/smlnj/sml/src/runtime/gc/flip.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** flip.c	17 Jun 2002 20:32:12 -0000	1.5
--- flip.c	5 May 2005 16:24:04 -0000	1.6
***************
*** 107,111 ****
  	   * (unless minSz > maxSizeB).
  	   */
! 	    newSz = ap->reqSizeB + ((thisMinSz * g->ratio) / numGCs);
  	    if (newSz < minSz)
  		newSz = minSz;
--- 107,111 ----
  	   * (unless minSz > maxSizeB).
  	   */
! 	    newSz = prevOldSz[j] + ap->reqSizeB + (g->ratio * (thisMinSz / numGCs));
  	    if (newSz < minSz)
  		newSz = minSz;



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.