On 04/09/2011 09:29 PM, Holger Hans Peter Freyther wrote:
>

Hi Paolo,

this seems a bit weird. once we add allocPtr + BYTES_TO.. and then we just do
allocPtr + size. I am not sure about the difference but it looks wrong. This
also raises the question when/if the eden is shrinked? I will try to find the
answer for that now.

@@ -762,13 +762,16 @@ _gst_alloc_obj (size_t size,
      GC, so we use a local var to hold its new value */
   newAllocPtr = _gst_mem.eden.allocPtr + BYTES_TO_SIZE (size);

  if UNCOMMON (size >= _gst_mem.big_object_threshold)


   if UNCOMMON (newAllocPtr >= _gst_mem.eden.maxPtr)
     {
       _gst_scavenge ();
-      newAllocPtr = _gst_mem.eden.allocPtr + size;
+      newAllocPtr = _gst_mem.eden.allocPtr + BYTES_TO_SIZE(size);
     }


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to