mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
RJIT: Do nothing on jit_cont_free
if cont is NULL.
This commit is contained in:
parent
4afe9c09a0
commit
e07e9f8491
1 changed files with 2 additions and 0 deletions
2
cont.c
2
cont.c
|
@ -1255,6 +1255,8 @@ jit_cont_new(rb_execution_context_t *ec)
|
|||
static void
|
||||
jit_cont_free(struct rb_jit_cont *cont)
|
||||
{
|
||||
if (!cont) return;
|
||||
|
||||
rb_native_mutex_lock(&jit_cont_lock);
|
||||
if (cont == first_jit_cont) {
|
||||
first_jit_cont = cont->next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue