(scm_threads_mark_stacks): Call SCM_MARK_BACKING_STORE. Also, do not
authorMarius Vollmer <mvo@zagadka.de>
Mon, 20 Sep 2004 21:46:07 +0000 (21:46 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 20 Sep 2004 21:46:07 +0000 (21:46 +0000)
use stack_len local, it was only used once.

libguile/threads.c

index 3bb39f1..6a78457 100644 (file)
@@ -956,17 +956,17 @@ scm_threads_mark_stacks (void)
 
       {
 #if SCM_STACK_GROWS_UP
-       long stack_len = t->top - t->base;
-       scm_mark_locations (t->base, stack_len);
+       scm_mark_locations (t->base, t->top - t->base);
 #else
-       long stack_len = t->base - t->top;
-       scm_mark_locations (t->top, stack_len);
+       scm_mark_locations (t->top, t->base - t->top);
 #endif
       }
       scm_mark_locations ((SCM_STACKITEM *) t->regs,
                          ((size_t) sizeof(t->regs)
                           / sizeof (SCM_STACKITEM)));
     }
+
+  SCM_MARK_BACKING_STORE ();
 }
 
 /*** Select */