diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 04:40:11 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 04:40:11 +0000 |
| commit | 6114c7100db229df42bcf4ce3ac1a53c61a54435 (patch) | |
| tree | 87aa1b283aa06247a9492e7e4d6fbf536b621611 | |
| parent | 459b72604e6e0811a521bc719dcb903a2920899f (diff) | |
| download | ruby-6114c7100db229df42bcf4ce3ac1a53c61a54435.tar.gz ruby-6114c7100db229df42bcf4ce3ac1a53c61a54435.tar.xz ruby-6114c7100db229df42bcf4ce3ac1a53c61a54435.zip | |
* gc.h (rb_gc_debug_body): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | gc.h | 2 | ||||
| -rw-r--r-- | iseq.c | 12 |
3 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,7 @@ +Fri Oct 16 13:40:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * gc.h (rb_gc_debug_body): constified. + Fri Oct 16 13:20:39 2009 NARUSE, Yui <naruse@ruby-lang.org> * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings. @@ -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--; @@ -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); } |
