[ruby-cvs:67003] ko1:r59825 (trunk): move th->machine to ec->machine.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Mon Sep 11 00:49:45 JST 2017


ko1	2017-09-11 00:49:45 +0900 (Mon, 11 Sep 2017)

  New Revision: 59825

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59825

  Log:
    move th->machine to ec->machine.
    
    * vm_core.h: move rb_thread_t::machine to rb_execution_context_t::machine.
    
    * vm_core.h, gc.c (rb_gc_mark_machine_stack): accept ec instead of th.
      it enables to call this func from rb_execution_context_mark() in vm.c.
    
    * cont.c (fiber_setcontext): catch up this fix.
      fiber_restore_thread() restores machine stack information too.
    
    * gc.c: catch up structure layout changes.
    
    * thread.c: ditto.
    
    * thread_pthread.c: ditto.
    
    * thread_win32.c: ditto.

  Modified files:
    trunk/cont.c
    trunk/gc.c
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/thread_win32.c
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list