diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 16:29:26 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 16:29:26 +0000 |
commit | 9987d53e519cf84fe47ffbbd4f48be0bc40938c7 (patch) | |
tree | 1cbd036967f588026bf6038c39898fa20a531e4b /yarvcore.c | |
parent | e98f7e1eaa18c33d211e6a0cf245eaf4b175c3c7 (diff) | |
download | ruby-9987d53e519cf84fe47ffbbd4f48be0bc40938c7.tar.gz |
* yarvcore.h: add rb_thread_t#top_wrapper, top_self.
* eval_load.c (rb_load): support eval in wrapper module
(load(file, true)).
* eval.c: ditto.
* eval_jump.h: ditto.
* iseq.c: ditto.
* vm.c: ditto.
* yarvcore.c: ditto.
* insns.def: add a empty line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r-- | yarvcore.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yarvcore.c b/yarvcore.c index be8922d811..bfc53fc6b3 100644 --- a/yarvcore.c +++ b/yarvcore.c @@ -277,6 +277,8 @@ thread_mark(void *ptr) MARK_UNLESS_NULL(th->value); MARK_UNLESS_NULL(th->errinfo); MARK_UNLESS_NULL(th->local_svar); + MARK_UNLESS_NULL(th->top_self); + MARK_UNLESS_NULL(th->top_wrapper); rb_mark_tbl(th->local_storage); @@ -340,6 +342,8 @@ th_init(rb_thread_t *th) th_init2(th); } +extern VALUE ruby_top_self; + static VALUE thread_init(VALUE self) { @@ -350,6 +354,9 @@ thread_init(VALUE self) th_init(th); th->self = self; th->vm = vm; + + th->top_wrapper = 0; + th->top_self = ruby_top_self; return self; } |