summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-01-09 14:24:38 +0900
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-01-09 20:02:54 +0900
commitc794a97940a36269cffcb6ad35ef7ff209fe2720 (patch)
tree0e765da5a7fd20739c8b20d5e1c046771121f2b4 /test
parente01e13c23999f0e43d8a0874003c73a1cdd68f1e (diff)
Rename `alloca_overflow` to `stack_overflow`
`alloca` is an implementation detail to raise a stack overflow.
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/stack/test_stack_overflow.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/-ext-/stack/test_stack_overflow.rb b/test/-ext-/stack/test_stack_overflow.rb
index 8eddec6ab5..3d7f00331d 100644
--- a/test/-ext-/stack/test_stack_overflow.rb
+++ b/test/-ext-/stack/test_stack_overflow.rb
@@ -17,7 +17,7 @@ class Test_StackOverflow < Test::Unit::TestCase
require '-test-/stack'
assert_raise(SystemStackError) do
- Thread.alloca_overflow
+ Thread.stack_overflow
end
RUBY
end
@@ -29,7 +29,7 @@ class Test_StackOverflow < Test::Unit::TestCase
thread = Thread.new do
Thread.current.report_on_exception = false
- Thread.alloca_overflow
+ Thread.stack_overflow
end
assert_raise(SystemStackError) do
@@ -44,7 +44,7 @@ class Test_StackOverflow < Test::Unit::TestCase
GC.disable
fiber = Fiber.new do
- Thread.alloca_overflow
+ Thread.stack_overflow
end
assert_raise(SystemStackError) do