From 32289fbed439e00ce8624834ced7a6bc3a12d70b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Oct 2015 02:57:43 +0000 Subject: vm_args.c: GC guard * vm_args.c (vm_caller_setup_arg_block): prevent newly created ifunc object from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 7b1dbd3ae7..b62e7538c8 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -117,6 +117,11 @@ class TestSymbol < Test::Unit::TestCase ary_ids = ary.collect{|x| x.object_id } assert_equal ary_ids, ary.collect(&:object_id) end + + assert_ruby_status([], <<-"end;", timeout: 0.1) + GC.stress = true + true.tap(&:itself) + end; end def test_call -- cgit v1.2.3