aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2023-11-13 08:13:33 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-11-13 08:57:57 +0100
commita1887f4dc2e62455a605944468e59e647f698f1a (patch)
treeef21aeac4e599bb27938bf94b2da4e85a634d2df /test
parent9ca41e999159096cb0872b4babbb94bf5d1af4ce (diff)
downloadruby-a1887f4dc2e62455a605944468e59e647f698f1a.tar.gz
Revert "Fix crash caused by concurrent ObjectSpace.dump_all calls"
This reverts commit 9a62fd3cbae2ebb60e2f9cad782af1ad18db4319.
Diffstat (limited to 'test')
-rw-r--r--test/objspace/test_objspace.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 1a8d7a24ba..1f1709fb76 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -918,14 +918,6 @@ class TestObjSpace < Test::Unit::TestCase
assert_equal 2, ObjectSpace.dump_shapes(output: :string, since: RubyVM.stat(:next_shape_id) - 2).lines.size
end
- def test_dump_all_in_parallel_bug_19922
- dump_ten_times = ->() { 10.times { ObjectSpace.dump_all.tap { _1.close } } }
- t = Thread.new { dump_ten_times.call }
- dump_ten_times.call
- t.value
- # Bug #19922 would cause this test to crash.
- end
-
private
def utf8_❨╯°□°❩╯︵┻━┻