зеркало из https://github.com/github/ruby.git
MJIT: Add assertions for mjit_capture_cc_entries
to investigate SEGVs in it
This commit is contained in:
Родитель
e99e1f0f3f
Коммит
ba8f3d2c6c
|
@ -1155,6 +1155,10 @@ mjit_iseq_cc_entries(const struct rb_iseq_constant_body *const body)
|
|||
int
|
||||
mjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const struct rb_iseq_constant_body *captured_iseq)
|
||||
{
|
||||
VM_ASSERT(compiled_iseq != NULL);
|
||||
VM_ASSERT(compiled_iseq->jit_unit != NULL);
|
||||
VM_ASSERT(captured_iseq != NULL);
|
||||
|
||||
struct rb_mjit_unit *unit = compiled_iseq->jit_unit;
|
||||
unsigned int new_entries_size = unit->cc_entries_size + captured_iseq->ci_size;
|
||||
VM_ASSERT(captured_iseq->ci_size > 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче