aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index e8c75d5625..f8a7e8a545 100644
--- a/iseq.c
+++ b/iseq.c
@@ -109,9 +109,12 @@ prepare_iseq_build(rb_iseq_t *iseq,
{
rb_thread_t *th = GET_THREAD();
+ OBJ_FREEZE(name);
+ OBJ_FREEZE(filename);
+
iseq->name = name;
- iseq->defined_method_id = 0;
iseq->filename = filename;
+ iseq->defined_method_id = 0;
iseq->iseq_mark_ary = rb_ary_new();
RBASIC(iseq->iseq_mark_ary)->klass = 0;