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 | 32289fbed439e00ce8624834ced7a6bc3a12d70b (patch) | |
tree | b59387af439ff922d7d6c396ff13efcc839608a9 /test | |
parent | 563127d710583f412168eac4f067e33f4ae628d5 (diff) | |
download | ruby-32289fbed439e00ce8624834ced7a6bc3a12d70b.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')
-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 |