From 63c7d9111c29e96c51768a60253ca1132165fd51 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 1 Oct 2015 15:18:42 +0000 Subject: proc.c: fix symbol proc mark * proc.c (proc_mark): block.ep of Proc from Symbol is now NULL. [ruby-core:70961] [Bug #11560] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_symbol.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby/test_symbol.rb') diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index b62e7538c8..bf2c4adbc9 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -122,6 +122,11 @@ class TestSymbol < Test::Unit::TestCase GC.stress = true true.tap(&:itself) end; + + assert_ruby_status([], <<-"end;", timeout: 0.1) + GC.stress = true + 100.times {Proc.new(&:itself)} + end; end def test_call -- cgit v1.2.3