diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-04 23:33:38 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-04 23:33:38 +0000 |
commit | ff1e665729d7bf6e3f3d17b0f5eb614b78bef341 (patch) | |
tree | 7bdd284bdb3abd2374c55d70bc0a1bc4c529f0b5 /sample/trick2015/ksk_1 | |
parent | 80e973f0e61a843f9e76c280fce327e070da7dab (diff) |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/trick2015/ksk_1')
0 files changed, 0 insertions, 0 deletions