diff options
author | Koichi Sasada <[email protected]> | 2020-02-22 11:23:30 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-02-22 11:54:19 +0900 |
commit | f744d80106ad236cb517c3a6eae5e591562e2377 (patch) | |
tree | 3db2cf88513820b78ebf81dc25c6c998caedcb87 | |
parent | 5b29ea0845c14092abd866ce0183c52635bade4c (diff) |
check USE_MJIT
iseq->body->jit_unit is not available if USE_MJIT==0 .
-rw-r--r-- | iseq.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -358,6 +358,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) } } +#if USE_MJIT if (body->jit_unit && body->jit_unit->cc_entries != NULL) { // TODO: move to mjit.c? for (unsigned int i=0; i<body->ci_size; i++) { @@ -365,6 +366,7 @@ rb_iseq_mark(const rb_iseq_t *iseq) rb_gc_mark((VALUE)cc); // pindown } } +#endif } if (FL_TEST_RAW(iseq, ISEQ_NOT_LOADED_YET)) { |