ruby-changes:39337
From: hsbt <ko1@a...>
Date: Wed, 29 Jul 2015 10:45:08 +0900 (JST)
Subject: [ruby-changes:39337] hsbt:r51418 (trunk): * gc.c: document argument passed to finalizer proc.
hsbt 2015-07-29 10:44:49 +0900 (Wed, 29 Jul 2015) New Revision: 51418 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51418 Log: * gc.c: document argument passed to finalizer proc. [fix GH-976][ci skip] Patch by @alexdowad Modified files: trunk/ChangeLog trunk/gc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51417) +++ ChangeLog (revision 51418) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jul 29 10:44:43 2015 Alex Dowad <alexinbeijing@g...> + + * gc.c: document argument passed to finalizer proc. + [fix GH-976][ci skip] Patch by @alexdowad + Wed Jul 29 10:36:58 2015 NARUSE, Yui <naruse@r...> * io.c (rb_io_extract_modeenc): add option parameter `flags' Index: gc.c =================================================================== --- gc.c (revision 51417) +++ gc.c (revision 51418) @@ -2474,7 +2474,9 @@ should_be_finalizable(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L2474 * ObjectSpace.define_finalizer(obj, aProc=proc()) * * Adds <i>aProc</i> as a finalizer, to be called after <i>obj</i> - * was destroyed. + * was destroyed. The object ID of the <i>obj</i> will be passed + * as an argument to <i>aProc</i>. If <i>aProc</i> is a lambda or + * method, make sure it can be called with a single argument. * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/