aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c12
1 files changed, 7 insertions, 5 deletions
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);
}