Skip to content

Commit

Permalink
RJIT: Do nothing on jit_cont_free
Browse files Browse the repository at this point in the history
if cont is NULL.
  • Loading branch information
k0kubun committed Mar 10, 2023
1 parent 4afe9c0 commit e07e9f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cont.c
Expand Up @@ -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;
Expand Down

0 comments on commit e07e9f8

Please sign in to comment.