From c911cbd6c3dcc80def61ab48be1815cd910fc91b Mon Sep 17 00:00:00 2001 From: nagachika Date: Sun, 16 Jul 2023 16:50:13 +0900 Subject: merge revision(s) bd786e78969f9d4a8699376ceafe10934b6ad533: [Backport #19084] Fix mutation on shared strings. (#7837) --- io_buffer.c | 19 ++++++++++++------- test/ruby/test_io_buffer.rb | 4 ---- 2 files changed, 12 insertions(+), 11 deletions(-) --- test/ruby/test_io_buffer.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io_buffer.rb b/test/ruby/test_io_buffer.rb index 45813256e4..a0949a54f2 100644 --- a/test/ruby/test_io_buffer.rb +++ b/test/ruby/test_io_buffer.rb @@ -348,10 +348,6 @@ class TestIOBuffer < Test::Unit::TestCase end def test_read - # This is currently a bug in IO:Buffer [#19084] which affects extended - # strings. On 32 bit machines, the example below becomes extended, so - # we omit this test until the bug is fixed. - omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1 io = Tempfile.new io.write("Hello World") io.seek(0) -- cgit v1.2.3