Skip to content

Commit

Permalink
it's not very intelligent to scan a null stack
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@650 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Oct 7, 2008
1 parent 7e3cb61 commit e26f03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,9 @@ static void
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*
Expand Down

0 comments on commit e26f03f

Please sign in to comment.