[ruby-cvs:55465] nobu:r48315 (trunk): thread.c: no function callsin RARRAY_LEN

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Nov 8 01:36:18 JST 2014


nobu	2014-11-08 01:36:16 +0900 (Sat, 08 Nov 2014)

  New Revision: 48315

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48315

  Log:
    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.

  Modified files:
    trunk/ext/thread/thread.c


More information about the ruby-cvs mailing list