[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


    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:

More information about the ruby-cvs mailing list