diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-23 22:52:19 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-23 22:52:19 +0000 |
| commit | f4038b58e7c9522f4d22aa2f3bea6840f179c856 (patch) | |
| tree | 826dcf85cb1bf4b8a3fae0448b0be1554e2e0205 /yarvcore.c | |
| parent | aa71ea71cc6ede9bdb33f8abd8cab49762df8fc6 (diff) | |
| download | ruby-f4038b58e7c9522f4d22aa2f3bea6840f179c856.tar.gz ruby-f4038b58e7c9522f4d22aa2f3bea6840f179c856.tar.xz ruby-f4038b58e7c9522f4d22aa2f3bea6840f179c856.zip | |
* cont.c: support callcc which everyone love.
incomplete. please give me bug reports.
* common.mk, inits.c, thread.c: ditto.
* yarvcore.c: export thread_mark().
* yarvcore.h: disable value cache option.
* eval_intern.h: set th_get_ruby_level_cfp to inline.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
| -rw-r--r-- | yarvcore.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/yarvcore.c b/yarvcore.c index 0d2dcecd8..21346f909 100644 --- a/yarvcore.c +++ b/yarvcore.c @@ -192,7 +192,9 @@ vm_mark(void *ptr) MARK_UNLESS_NULL(vm->mark_object_ary); MARK_UNLESS_NULL(vm->last_status); MARK_UNLESS_NULL(vm->loaded_features); - if (vm->loading_table) rb_mark_tbl(vm->loading_table); + if (vm->loading_table) { + rb_mark_tbl(vm->loading_table); + } mark_event_hooks(vm->event_hooks); } @@ -311,6 +313,12 @@ thread_mark(void *ptr) MARK_REPORT_LEAVE("thread"); } +void +rb_thread_mark(void *ptr) +{ + thread_mark(ptr); +} + static VALUE thread_alloc(VALUE klass) { |
