[ruby-cvs:71795] normal:r64703 (trunk): share VM stack between threads and fibers if identical in size

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


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

  New Revision: 64703

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

  Log:
    share VM stack between threads and fibers if identical in size
    
    ec->vm_stack is always allocated with malloc, so stack cache for
    root fiber (thread stack) and non-root fibers can be shared as
    long as the size is the same.  The purpose of this change is to
    reduce dependencies on ROOT_FIBER_CONTEXT.
    
    [Feature #15095] [Bug #15050]
    
    v2: vm.c: fix build with USE_THREAD_DATA_RECYCLE==0

  Modified files:
    trunk/cont.c
    trunk/internal.h
    trunk/vm.c


More information about the ruby-cvs mailing list