[ruby-cvs:70180] ko1:r63090 (trunk): refactoring r63073.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Apr 4 17:19:29 JST 2018


ko1	2018-04-04 17:19:28 +0900 (Wed, 04 Apr 2018)

  New Revision: 63090

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

  Log:
    refactoring r63073.
    
    * cont.c (root_fiber_alloc): call `ConvertThreadToFiber()` here.
    
      `rb_fiber_t` for root_fiber is allocated before running Threads.
      Fiber objects wrapping this rb_fiber_t for root_fiber are created
      when root Fiber object is required explicitly (for example, Fiber
      switching and so on). We can put calling `ConvertThreadToFiber()`.
      In other words, we can pending `ConvertThreadToFiber()`
      until Fiber objects are created.

  Modified files:
    trunk/cont.c
    trunk/thread.c
    trunk/vm.c


More information about the ruby-cvs mailing list