[ruby-cvs:71279] normal:r64187 (trunk): test/ruby/test_io.rb (test_select_leak): speedup and reduce memory use

normal at ruby-lang.org normal at ruby-lang.org
Sun Aug 5 08:33:38 JST 2018

normal	2018-08-05 08:33:38 +0900 (Sun, 05 Aug 2018)

  New Revision: 64187


    test/ruby/test_io.rb (test_select_leak): speedup and reduce memory use
    We can reuse the sub-thread and exception with Thread#raise to
    reproduce the old memory leak with less overhead.  This allows
    us to to run more iterations and improve reliability of the
    actual test, particularly on platforms without USE_THREAD_CACHE.
    For glibc and jemalloc, also limit arena count to avoid
    inadvertant growth.

  Modified files:

More information about the ruby-cvs mailing list