зеркало из https://github.com/github/ruby.git
Assert unit->iseq null out happens under the JIT/GC guard
This commit is contained in:
Родитель
58c3c75fee
Коммит
541e4340dd
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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче