summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2024-11-29 18:16:47 +0900
committer卜部昌平 <[email protected]>2024-11-29 23:19:05 +0900
commit705714be3e8aee2a295bea8789b997f5dd2450cc (patch)
tree96edca706e39af2af0be4607cdcacf8430310c29 /gc.c
parent25ad7e8e6c272bf4d13bbd575bb184cd7542714d (diff)
prefer ruby_memerror instead
This could be out of GVL
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12188
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 1ad29fbac3..936f466f9c 100644
--- a/gc.c
+++ b/gc.c
@@ -4443,7 +4443,8 @@ handle_malloc_failure(void *ptr)
return ptr;
}
else {
- return ruby_memerror_body(ptr);
+ ruby_memerror();
+ UNREACHABLE_RETURN(ptr);
}
}