ruby-changes:13585
From: nobu <ko1@a...>
Date: Fri, 16 Oct 2009 13:40:25 +0900 (JST)
Subject: [ruby-changes:13585] Ruby:r25366 (trunk): * gc.h (rb_gc_debug_body): constified.
nobu 2009-10-16 13:40:11 +0900 (Fri, 16 Oct 2009) New Revision: 25366 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25366 Log: * gc.h (rb_gc_debug_body): constified. Modified files: trunk/ChangeLog trunk/gc.h trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25365) +++ ChangeLog (revision 25366) @@ -1,3 +1,7 @@ +Fri Oct 16 13:40:09 2009 Nobuyoshi Nakada <nobu@r...> + + * gc.h (rb_gc_debug_body): constified. + Fri Oct 16 13:20:39 2009 NARUSE, Yui <naruse@r...> * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings. Index: iseq.c =================================================================== --- iseq.c (revision 25365) +++ iseq.c (revision 25366) @@ -11,7 +11,7 @@ #include "ruby/ruby.h" -/* #define MARK_FREE_DEBUG 1 */ +/* #define RUBY_MARK_FREE_DEBUG 1 */ #include "gc.h" #include "vm_core.h" #include "iseq.h" @@ -63,10 +63,12 @@ if (ptr) { iseq = ptr; if (!iseq->orig) { - /* It's possible that strings are freed - * GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name), - * RSTRING_PTR(iseq->filename)); - */ + /* It's possible that strings are freed */ + if (0) { + RUBY_GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name), + RSTRING_PTR(iseq->filename)); + } + if (iseq->iseq != iseq->iseq_encoded) { RUBY_FREE_UNLESS_NULL(iseq->iseq_encoded); } Index: gc.h =================================================================== --- gc.h (revision 25365) +++ gc.h (revision 25366) @@ -26,7 +26,7 @@ } static void -rb_gc_debug_body(char *mode, char *msg, int st, void *ptr) +rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr) { if (st == 0) { ruby_gc_debug_indent--; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/