[gs-cvs] rev 8495 - trunk/gs/src

leonardo at ghostscript.com leonardo at ghostscript.com
Sun Jan 20 14:23:08 PST 2008


Author: leonardo
Date: 2008-01-20 14:23:07 -0800 (Sun, 20 Jan 2008)
New Revision: 8495

Modified:
   trunk/gs/src/isave.c
Log:
Fix (save/restore) : Do not create invisible save levels.

DETAILS :

Invisible save levels is a rudiment of old code.
gs_ref_memory_s::scan_limit effectively work instead them 
since revision 6706 committed on April 14 2006.

We're not sure what gs_ref_memory_s::inherited works for.
Keeping it updated for a while, and don't remove the 
old code for reference. Note the maintanence of gs_ref_memory_s::inherited
in the new code is not fully equivalent to old code.

EXPECTED DIFFERENCES :

None.      


Modified: trunk/gs/src/isave.c
===================================================================
--- trunk/gs/src/isave.c	2008-01-20 09:56:15 UTC (rev 8494)
+++ trunk/gs/src/isave.c	2008-01-20 22:23:07 UTC (rev 8495)
@@ -370,6 +370,7 @@
 
 	if (code < 0)
 	    return code;
+#if 0 /* Disable invisible save levels. */
 	if ((lsave->state.total_scanned += scanned) > max_repeated_scan) {
 	    /* Do a second, invisible save. */
 	    alloc_save_t *rsave;
@@ -397,6 +398,9 @@
 		print_save("save", lmem->space, lsave);
 	    }
 	}
+#else
+	lmem->inherited = lsave->state.allocated + lsave->state.inherited;
+#endif
     }
     alloc_set_in_save(dmem);
     *psid = sid;



More information about the gs-cvs mailing list