From aaa01efb958a17b89b2e347faf765bc0fe1ad479 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Oct 2009 04:40:11 +0000 Subject: * gc.h (rb_gc_debug_body): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ gc.h | 2 +- iseq.c | 12 +++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index f084bbd5a1..4644de9fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 16 13:40:09 2009 Nobuyoshi Nakada + + * gc.h (rb_gc_debug_body): constified. + Fri Oct 16 13:20:39 2009 NARUSE, Yui * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings. diff --git a/gc.h b/gc.h index 29fd6b407c..82fbcb53e0 100644 --- a/gc.h +++ b/gc.h @@ -26,7 +26,7 @@ rb_gc_debug_indent(void) } 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--; diff --git a/iseq.c b/iseq.c index ac5a93b3de..1c4cb882be 100644 --- a/iseq.c +++ b/iseq.c @@ -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 @@ iseq_free(void *ptr) 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); } -- cgit v1.2.3