summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-12-15 17:53:55 +0900
committerKoichi Sasada <ko1@atdot.net>2022-12-16 10:04:37 +0900
commitae19ac5b5ba1e613a788addeb6d4d67fa65f6518 (patch)
treea431cdff5e73e1b48edb1a2f0b30578162736e68 /bootstraptest
parent15b60bb1a48b98e2ba267c88551803df5f88355e (diff)
fixed encoding table
This reduces global lock acquiring for reading. https://bugs.ruby-lang.org/issues/18949
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6935
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index deffa476e5..4f659374f2 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -1474,7 +1474,7 @@ assert_equal "#{N}#{N}", %Q{
}
# enc_table
-assert_equal "#{N/10}", %Q{
+assert_equal "100", %Q{
Ractor.new do
loop do
Encoding.find("test-enc-#{rand(5_000)}").inspect
@@ -1483,7 +1483,7 @@ assert_equal "#{N/10}", %Q{
end
src = Encoding.find("UTF-8")
- #{N/10}.times{|i|
+ 100.times{|i|
src.replicate("test-enc-\#{i}")
}
}