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 | aaa01efb958a17b89b2e347faf765bc0fe1ad479 (patch) | |
tree | 87aa1b283aa06247a9492e7e4d6fbf536b621611 /iseq.c | |
parent | 438b8706a7b4353a2208debaaf2fa2335ea94b1a (diff) | |
download | ruby-aaa01efb958a17b89b2e347faf765bc0fe1ad479.tar.gz |
* gc.h (rb_gc_debug_body): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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); } |