diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-02 18:59:40 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-02 18:59:40 +0000 |
commit | 0db6b623a63003aad342739e66d81f957deff60c (patch) | |
tree | 9f20f57258949bba5dfa55c9b7f1768cc2d88ad1 /rational.c | |
parent | c0837cb73a54db079546cfba886470bd3be4dfe0 (diff) | |
download | ruby-0db6b623a63003aad342739e66d81f957deff60c.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 'rational.c')
0 files changed, 0 insertions, 0 deletions