[macruby-changes] [1816] MacRuby/branches/experimental/gc.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Jun 8 21:57:19 PDT 2009


Revision: 1816
          http://trac.macosforge.org/projects/ruby/changeset/1816
Author:   lsansonetti at apple.com
Date:     2009-06-08 21:57:18 -0700 (Mon, 08 Jun 2009)
Log Message:
-----------
fixed the return value of ObjectSpace#define_finalizer

Modified Paths:
--------------
    MacRuby/branches/experimental/gc.c

Modified: MacRuby/branches/experimental/gc.c
===================================================================
--- MacRuby/branches/experimental/gc.c	2009-06-09 04:48:23 UTC (rev 1815)
+++ MacRuby/branches/experimental/gc.c	2009-06-09 04:57:18 UTC (rev 1816)
@@ -678,7 +678,10 @@
     else {
 	FL_SET(obj, FL_FINALIZE);
     }
-    return block;
+
+    VALUE ret = rb_ary_new3(2, INT2FIX(rb_safe_level()), block);
+    OBJ_FREEZE(ret);
+    return ret;
 }
 
 void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090608/0bb77c74/attachment.html>


More information about the macruby-changes mailing list