From bef64b44f70447eb8b2644fc7e75e884184ef5ea Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 16 Nov 2026 09:54:14 +0900 Subject: [PATCH] Avoid deep Array#== in test_spill_frames_stack Since ruby/ruby@c65a8e03f1 checks the machine stack on the rb_funcall fast path, comparing the 1000 levels deep arrays raises SystemStackError on the mingw build of ruby-head. Co-Authored-By: Claude Opus 5.5 --- test/json/resumable_parser_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/json/resumable_parser_test.rb b/test/json/resumable_parser_test.rb index 29f5c5bc..35f9d3ec 100644 --- a/test/json/resumable_parser_test.rb +++ b/test/json/resumable_parser_test.rb @@ -669,11 +669,10 @@ def test_spill_rvalue_stack def test_spill_frames_stack json = '[' * 1000 + ']' * 1000 - expected = JSON.parse(json, max_nesting: 1000) @parser = new_parser(max_nesting: 1000) @parser << json assert @parser.parse - assert_equal expected, @parser.value + assert_equal json, JSON.generate(@parser.value, max_nesting: 1000) end def test_buffer_shrink