Actions
Feature #15974
closedWarn in verbose mode on defining a finalizer that captures the object
Feature #15974: Warn in verbose mode on defining a finalizer that captures the object
Status:
Closed
Assignee:
-
Target version:
-
Description
There's a really common mistake people make when using define_finalizer - they capture the object in the finalizer.
https://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/
This PR warns about that, when in verbose mode (it's too slow to do always.)
Actions