diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-12 15:21:18 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2019-09-26 13:56:41 -0700 |
commit | 3cd8f76f7f1bc09f9dd6b65eaafe2fd3a990ac60 (patch) | |
tree | 4f2bd61e116bbdec7c3df14c2a406a5783d8c5cc /compile.c | |
parent | bd017c633da4fe27c85b5dfc059b85d44a3b7afe (diff) |
Introduce a secondary arena
We'll scan the secondary arena during GC mark. So, we should only
allocate "markable" instruction linked list nodes out of the secondary
arena.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -882,7 +882,7 @@ compile_data_alloc_with_arena(struct iseq_compile_data_storage **arena, size_t s static void * compile_data_alloc(rb_iseq_t *iseq, size_t size) { - struct iseq_compile_data_storage ** arena = &ISEQ_COMPILE_DATA(iseq)->storage_current; + struct iseq_compile_data_storage ** arena = &ISEQ_COMPILE_DATA(iseq)->node.storage_current; return compile_data_alloc_with_arena(arena, size); } |