Revision
650
Author
lsansonetti@apple.com
Date
2008-10-07 00:22:25 -0700 (Tue, 07 Oct 2008)

Log Message

it's not very intelligent to scan a null stack

Modified Paths

Diff

Modified: MacRuby/trunk/gc.c (649 => 650)


--- MacRuby/trunk/gc.c	2008-10-07 07:21:54 UTC (rev 649)
+++ MacRuby/trunk/gc.c	2008-10-07 07:22:25 UTC (rev 650)
@@ -439,7 +439,9 @@
 rb_objc_scan_external_callout(void *context, void (*scanner)(void *context, void *start, void *end))
 {
     rb_thread_t *th = GET_THREAD();
-    (*scanner)(context, th->stack, th->cfp->sp);
+    if (th->stack != NULL) {
+	(*scanner)(context, th->stack, th->cfp->sp);
+    }
 } 
 
 NODE*