[gs-cvs] rev 8661 - branches/mtrender/src

ray at ghostscript.com ray at ghostscript.com
Thu Apr 24 12:25:22 PDT 2008


Author: ray
Date: 2008-04-24 12:25:21 -0700 (Thu, 24 Apr 2008)
New Revision: 8661

Modified:
   branches/mtrender/src/gsmchunk.c
Log:
Fix initialization of 'stable_memory' element in the allocator.


Modified: branches/mtrender/src/gsmchunk.c
===================================================================
--- branches/mtrender/src/gsmchunk.c	2008-04-24 19:24:08 UTC (rev 8660)
+++ branches/mtrender/src/gsmchunk.c	2008-04-24 19:25:21 UTC (rev 8661)
@@ -114,10 +114,10 @@
     *wrapped = NULL;		/* don't leave garbage in case we fail */
     if (cmem == 0)
         return_error(gs_error_VMerror);
-    cmem->stable_memory = 0;	/* ??? copied from locking wrapper */
+    cmem->stable_memory = (gs_memory_t *)cmem;	/* we are stable */
     cmem->procs = chunk_procs;
     cmem->gs_lib_ctx = target->gs_lib_ctx;
-    cmem->non_gc_memory = (gs_memory_t *)cmem;
+    cmem->non_gc_memory = (gs_memory_t *)cmem;	/* and are not subject to GC */
     cmem->target = target;
     cmem->head_chunk = NULL;
 



More information about the gs-cvs mailing list