Skip to content

Commit

Permalink
prefer ruby_memerror instead
Browse files Browse the repository at this point in the history
This could be out of GVL
  • Loading branch information
shyouhei committed Nov 29, 2024
1 parent 3901af2 commit f3668e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4443,7 +4443,8 @@ handle_malloc_failure(void *ptr)
return ptr;
}
else {
return ruby_memerror_body(ptr);
ruby_memerror();
UNREACHABLE_RETURN(ptr);
}
}

Expand Down

0 comments on commit f3668e9

Please sign in to comment.