[ruby-cvs:55112] normal:r47963 (trunk): cont.c (cont_save_thread): Sparse copying of thread data

normal at ruby-lang.org normal at ruby-lang.org
Thu Oct 16 07:35:01 JST 2014


normal	2014-10-16 07:35:01 +0900 (Thu, 16 Oct 2014)

  New Revision: 47963

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

  Log:
    cont.c (cont_save_thread): Sparse copying of thread data
    
    Instead of copying the complete rb_thread_t struct (almost a kB),
    selectively copy only those fields that will be needed later on.
    
    * cont.c (rb_context_t): comment on saved_thread
      (cont_save_thread): sparse copy
      (cont_init): copy extra fields
      (fiber_init): use current thread VM stack size
      [ruby-core:65518] [Feature #10341]

  Modified files:
    trunk/ChangeLog
    trunk/cont.c


More information about the ruby-cvs mailing list