Skip to content

Commit

Permalink
fixed bug in cc_purge (sense of NIL_P test inverted)
Browse files Browse the repository at this point in the history
  • Loading branch information
brentr committed Oct 11, 2011
1 parent 4f38c93 commit 1b4268d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,3 +1,7 @@
Mon Oct 12 22:35:00 2011 Brent Roman <brent@mbari.org>

* fixed inverted NUL_P test in eval.c(cc_purge)

Mon Oct 11 17:55:00 2011 Brent Roman <brent@mbari.org>

* always includes GC.stress method, even if MBARI_API enabled
Expand Down
2 changes: 1 addition & 1 deletion eval.c
Expand Up @@ -13446,7 +13446,7 @@ cc_purge(cc)
rb_thread_t cc;
{
/* free continuation's stack if it has just died */
if (NIL_P(cc->thread) &&
if (!NIL_P(cc->thread) &&
THREAD_DATA(cc->thread)->status == THREAD_KILLED) {
cc->thread = Qnil;
rb_thread_die(cc); /* can't possibly activate this stack */
Expand Down

0 comments on commit 1b4268d

Please sign in to comment.