[ruby-cvs:71797] normal:r64705 (trunk): cont.c (fiber_memsize): do not rely on ROOT_FIBER_CONTEXT

normal at ruby-lang.org normal at ruby-lang.org
Thu Sep 13 05:49:19 JST 2018


normal	2018-09-13 05:49:19 +0900 (Thu, 13 Sep 2018)

  New Revision: 64705

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

  Log:
    cont.c (fiber_memsize): do not rely on ROOT_FIBER_CONTEXT
    
    We can check if the fiber we're interested in is the
    th->root_fiber for the owner thread, so there is no need to use
    ROOT_FIBER_CONTEXT.
    
    Note: there is no guarantee th->ec points to
    &th->root_fiber->cont.saved_ec, thus vm::thread_memsize may not
    account for root fiber correctly (pre-existing bug).
    
    [Bug #15050]

  Modified files:
    trunk/cont.c


More information about the ruby-cvs mailing list