mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (rb_gc_call_finalizer_at_exit): self-referencing finalizers
cannot be invoked. [ruby-dev:35681] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5adb247914
commit
faf2541c2b
3 changed files with 28 additions and 20 deletions
8
bootstraptest/test_finalizer.rb
Normal file
8
bootstraptest/test_finalizer.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
assert_normal_exit %q{
|
||||
a1,a2,b1,b2=Array.new(4){""}
|
||||
ObjectSpace.define_finalizer(b2,proc{})
|
||||
ObjectSpace.define_finalizer(b1,proc{b1.inspect})
|
||||
|
||||
ObjectSpace.define_finalizer(a2,proc{a1.inspect})
|
||||
ObjectSpace.define_finalizer(a1,proc{})
|
||||
}, '[ruby-dev:35778]'
|
Loading…
Add table
Add a link
Reference in a new issue