[ruby-cvs:73342] normal:r66242 (trunk): io.c (io_write_nonblock): add RB_GC_GUARD, io_fflush may switch threads

normal at ruby-lang.org normal at ruby-lang.org
Thu Dec 6 19:09:30 JST 2018


normal	2018-12-06 19:09:30 +0900 (Thu, 06 Dec 2018)

  New Revision: 66242

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

  Log:
    io.c (io_write_nonblock): add RB_GC_GUARD, io_fflush may switch threads
    
    Since io_fflush may block on mutex or rb_io_wait_readable and
    switch threads, we need to ensure the `str' VALUE returned by
    `rb_obj_as_string` is visible to GC.

  Modified files:
    trunk/io.c


More information about the ruby-cvs mailing list