diff options
author | Takashi Kokubun <[email protected]> | 2020-03-12 22:21:31 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-03-12 22:21:32 -0700 |
commit | 8562bfd1501a69aa736ba4f699a77940b2cdd9b1 (patch) | |
tree | 2846ba5722ce184e20bdcbbb4f986ff76ddd68f6 /iseq.c | |
parent | a90117c8c90134994bac3146d282a6f73dd17416 (diff) |
Move code to mark jit_unit's cc_entries to mjit.c
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -359,17 +359,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) } #if USE_MJIT - const struct rb_callcache **cc_entries; - if (body->jit_unit && (cc_entries = mjit_iseq_cc_entries(body)) != NULL) { - for (unsigned int i=0; i<body->ci_size; i++) { - const struct rb_callcache *cc = cc_entries[i]; - if (cc != NULL) { - // Pin `cc` and `cc->cme` against GC.compact as their addresses may be written in JIT-ed code. - rb_gc_mark((VALUE)cc); - rb_gc_mark((VALUE)vm_cc_cme(cc)); - } - } - } + mjit_mark_cc_entries(body); #endif } |