Project

General

Profile

Bug #15387

Backport r66242 (io.c (io_write_nonblock): add RB_GC_GUARD, io_fflush may switch threads)

Added by nagachika (Tomoyuki Chikanaga) 9 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:90340]

Description

This is a ticket for backport management.

Associated revisions

Revision 66242
Added by normalperson (Eric Wong) 9 months ago

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.

Revision d6ea20ff
Added by nagachika (Tomoyuki Chikanaga) 7 months ago

merge revision(s) 66242: [Backport #15387]

    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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@66876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 66876
Added by nagachika (Tomoyuki Chikanaga) 7 months ago

merge revision(s) 66242: [Backport #15387]

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.

Revision 6d7cab3b
Added by usa (Usaku NAKAMURA) 7 months ago

merge revision(s) 66242: [Backport #15387]

    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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@66965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 66965
Added by usa (Usaku NAKAMURA) 7 months ago

merge revision(s) 66242: [Backport #15387]

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.

History

Updated by nagachika (Tomoyuki Chikanaga) 7 months ago

  • Backport changed from 2.4: REQUIRED, 2.5: REQUIRED to 2.4: REQUIRED, 2.5: DONE

ruby_2_5 r66876 merged revision(s) 66242.

Updated by usa (Usaku NAKAMURA) 7 months ago

  • Backport changed from 2.4: REQUIRED, 2.5: DONE to 2.4: DONE, 2.5: DONE

ruby_2_4 r66965 merged revision(s) 66242.

Also available in: Atom PDF