summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-17 09:36:05 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-17 09:36:05 +0000
commit73a47246f27d7967ec8af5fb7ce43064d4a64d40 (patch)
treed3f505227c0ff960dce425a24c1722e6e29d5ef8 /eval.c
parent50cc115b7e29418bf8cc1713717e72912f45e74a (diff)
* eval.c (rb_mod_nesting): load wrapping module should appear in
Module#nesting list. (ruby-bugs-ja:PR#328) * eval.c (rb_thread_remove): free stack buffer on remove. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 8d93cbcfd5..14915d6d22 100644
--- a/eval.c
+++ b/eval.c
@@ -1570,6 +1570,9 @@ rb_mod_nesting()
if (!NIL_P(cbase->nd_clss)) rb_ary_push(ary, cbase->nd_clss);
cbase = cbase->nd_next;
}
+ if (ruby_wrapper && RARRAY(ary)->len == 0) {
+ rb_ary_push(ary, ruby_wrapper);
+ }
return ary;
}
@@ -7766,6 +7769,8 @@ rb_thread_remove(th)
th->gid = 0;
th->prev->next = th->next;
th->next->prev = th->prev;
+ if (th->stk_ptr) free(th->stk_ptr);
+ th->stk_ptr = 0;
}
static int