mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Assert unit->iseq null out happens under the JIT/GC guard
This commit is contained in:
parent
58c3c75fee
commit
541e4340dd
1 changed files with 2 additions and 0 deletions
2
mjit.c
2
mjit.c
|
@ -119,6 +119,8 @@ mjit_free_iseq(const rb_iseq_t *iseq)
|
|||
return;
|
||||
|
||||
CRITICAL_SECTION_START(4, "mjit_free_iseq");
|
||||
RUBY_ASSERT_ALWAYS(in_gc);
|
||||
RUBY_ASSERT_ALWAYS(!in_jit);
|
||||
if (iseq->body->jit_unit) {
|
||||
// jit_unit is not freed here because it may be referred by multiple
|
||||
// lists of units. `get_from_list` and `mjit_finish` do the job.
|
||||
|
|
Loading…
Reference in a new issue