[macruby-changes] [650] MacRuby/trunk/gc.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Oct 7 00:22:25 PDT 2008
Revision: 650
http://trac.macosforge.org/projects/ruby/changeset/650
Author: lsansonetti at 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:
--------------
MacRuby/trunk/gc.c
Modified: MacRuby/trunk/gc.c
===================================================================
--- 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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081007/17aec6a5/attachment.html
More information about the macruby-changes
mailing list