Project

General

Profile

« Previous | Next » 

Revision 91e37180

Added by nagachika (Tomoyuki Chikanaga) about 11 years ago

merge revision(s) 39688: [Backport #8065]

    * test/thread/test_queue.rb (TestQueue#test_thr_kill): reduce
      iterations from 2000 to 250. When running on uniprocessor
      systems, every th.kill needs TIME_QUANTUM_USEC time (i.e.
      100msec on posix systems). Because, "r.read 1" is 3 steps
      operations that 1) release GVL 2) read 3) acquire gvl and
      (1) invoke context switch to main thread. and then, main
      thread's th.kill resume (1), but not (2). Thus read interrupt
      need TIME_QUANTUM_USEC. Then maximum iteration is 30sec/100msec
      = 300.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e