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.
This commit is contained in:
Aaron Patterson 2019-09-12 15:21:18 -07:00
parent bd017c633d
commit 3cd8f76f7f
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6
3 changed files with 14 additions and 6 deletions

View file

@ -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);
}