Hi all,

Here's a small patch to fix a typo I caught while looking over the GC
code.  It doesn't fix the finalizer bugs we found, since the heap_free
function currently simply ignores its second argument.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth
>From 26bbf60837012ba8f1d33fa4927b50da51b3512d Mon Sep 17 00:00:00 2001
From: Peter Bex <[email protected]>
Date: Wed, 20 Jun 2012 21:36:39 +0200
Subject: [PATCH] Fix typo in call to heap_free (second argument is currently
 unused, but it might potentially be used in the future)

---
 runtime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/runtime.c b/runtime.c
index ced344b..bf4e578 100644
--- a/runtime.c
+++ b/runtime.c
@@ -3231,7 +3231,7 @@ C_regparm void C_fcall C_rereclaim2(C_uword size, int 
double_plus)
   }
 
   heap_free (heapspace1, heapspace1_size);
-  heap_free (heapspace2, heapspace1_size);
+  heap_free (heapspace2, heapspace2_size);
   
   if ((heapspace2 = heap_alloc (size, &tospace_start)) == NULL)
     panic(C_text("out ot memory - cannot allocate heap segment"));
-- 
1.7.9.1

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to