diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-07 16:36:16 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-07 16:36:16 +0000 |
commit | 13d241489a77634a83de04ec90b9bd5983a0493f (patch) | |
tree | 2bad996a354cd12f950f211a953bc1473dbe7809 /ext/extmk.rb | |
parent | 72ce1a4759b853b02eab31786acbb69ba80b4fd8 (diff) | |
download | ruby-13d241489a77634a83de04ec90b9bd5983a0493f.tar.gz |
thread.c: no function callsin RARRAY_LEN
* ext/thread/thread.c (queue_length, queue_num_waiting): avoid
function calls in RARRAY_LEN macro which evaluates the argument
multiple times.
* ext/thread/thread.c (rb_szqueue_num_waiting): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
0 files changed, 0 insertions, 0 deletions