prefer ruby_memerror instead

This could be out of GVL
This commit is contained in:
卜部昌平 2024-11-29 18:16:47 +09:00
parent 25ad7e8e6c
commit 705714be3e
Notes: git 2024-11-29 14:19:26 +00:00

3
gc.c
View File

@ -4443,7 +4443,8 @@ handle_malloc_failure(void *ptr)
return ptr;
}
else {
return ruby_memerror_body(ptr);
ruby_memerror();
UNREACHABLE_RETURN(ptr);
}
}