summaryrefslogtreecommitdiff
path: root/ext/-test-/load
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-02 18:59:40 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-02 18:59:40 +0000
commit0db6b623a63003aad342739e66d81f957deff60c (patch)
tree9f20f57258949bba5dfa55c9b7f1768cc2d88ad1 /ext/-test-/load
parentc0837cb73a54db079546cfba886470bd3be4dfe0 (diff)
io.c: remove rb_ensure usage for rb_str_tmp_frozen_* calls
Using rb_ensure pessimizes the common case and makes the code more difficult to read and follow. If we hit an exceptions during write, just let the GC handle cleanup as the exception is already bad for garbage. * io.c (io_fwrite): call rb_str_tmp_frozen{acquire,release} directly (rb_io_syswrite): ditto (fwrite_do, fwrite_end, swrite_do, swrite_end): remove git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/load')
0 files changed, 0 insertions, 0 deletions