Project

General

Profile

« Previous | Next » 

Revision b53b3775

Added by ko1 (Koichi Sasada) about 8 years ago

store ec instead of thread in rb_context_t.

  • cont.c (rb_context_t): introduce saved_ec instaad of saved_thread.
    We only need to transfer ec data (not all of thread data).

    Introduce thread_value field to point creation thread.
    To acccess this field, cont_thread_value() is introduced.

  • vm.c (rb_execution_context_mark): remove static and use it
    from cont.c (use this function instead of rb_thread_mark).

  • vm_insnhelper.c (rb_vm_push_frame): accept ec instead of th.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e