summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorLourens Naudé <lourens@bearmetal.eu>2019-04-10 13:05:15 +0100
committerKoichi Sasada <ko1@atdot.net>2019-04-25 12:37:29 +0900
commit99084f540171df301478ec66fb89e2c38287e504 (patch)
tree454234eba0b88bc9b89f829ecb8ddef396341425 /iseq.c
parent9bfc185a0d93f05f7522a3dea89d69920dcf079c (diff)
Lazy allocate the compile data catch table array
Closes: https://github.com/ruby/ruby/pull/2119
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 9a7c1f60bc..adf4b07dd9 100644
--- a/iseq.c
+++ b/iseq.c
@@ -540,7 +540,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
ALLOC_N(char, INITIAL_ISEQ_COMPILE_DATA_STORAGE_BUFF_SIZE +
offsetof(struct iseq_compile_data_storage, buff));
- RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->catch_table_ary, rb_ary_tmp_new(3));
+ RB_OBJ_WRITE(iseq, &ISEQ_COMPILE_DATA(iseq)->catch_table_ary, Qnil);
ISEQ_COMPILE_DATA(iseq)->storage_head->pos = 0;
ISEQ_COMPILE_DATA(iseq)->storage_head->next = 0;
ISEQ_COMPILE_DATA(iseq)->storage_head->size =