diff --git a/ChangeLog b/ChangeLog index 728c5603a2..c043077324 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 12 22:35:00 2011 Brent Roman + + * fixed inverted NUL_P test in eval.c(cc_purge) + Mon Oct 11 17:55:00 2011 Brent Roman * always includes GC.stress method, even if MBARI_API enabled diff --git a/eval.c b/eval.c index 60b2be6830..4042eeb7ed 100644 --- a/eval.c +++ b/eval.c @@ -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 */