diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-01 02:57:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-01 02:57:43 +0000 |
commit | 8dca87b62db9b94e2aee8bcdf9e8d992357e8373 (patch) | |
tree | b59387af439ff922d7d6c396ff13efcc839608a9 /test/ruby/test_symbol.rb | |
parent | d5cc0f3dea3851e39db6efd6c3dbf79624d6da66 (diff) | |
download | ruby-8dca87b62db9b94e2aee8bcdf9e8d992357e8373.tar.gz |
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
Diffstat (limited to 'test/ruby/test_symbol.rb')
-rw-r--r-- | test/ruby/test_symbol.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |