aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
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
commit471c7ee531b0689cff9f03e682fdffdf644f401d (patch)
tree9f20f57258949bba5dfa55c9b7f1768cc2d88ad1 /internal.h
parent5bf370a6de2ac42a3779fdb44a0a7e578081f111 (diff)
downloadruby-471c7ee531b0689cff9f03e682fdffdf644f401d.tar.gz
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 'internal.h')
0 files changed, 0 insertions, 0 deletions