diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-31 02:18:58 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-31 02:18:58 +0000 |
commit | 3dd233315a6907a39430eb170a5ce96eb10883eb (patch) | |
tree | c8762b5fbb780498076fb2727dcb65b4226ddb93 /thread_pthread.c | |
parent | 15e45d3e695b909c8b28c06a199ff826a736345e (diff) | |
download | ruby-3dd233315a6907a39430eb170a5ce96eb10883eb.tar.gz |
time.c (time_strftime): avoid garbage in common case
strftime format strings which are dynamically-generated will benefit
from avoiding garbage, here.
* time.c (time_strftime): use rb_str_tmp_frozen_{acquire,release}
* test/ruby/test_time.rb (test_strftime_no_hidden_garbage): new test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
0 files changed, 0 insertions, 0 deletions