summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2024-11-28 10:08:16 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2024-11-29 23:19:05 +0900
commit25ad7e8e6c272bf4d13bbd575bb184cd7542714d (patch)
treef0d7ccf9d6cd3a9107238bcfa34bbc7e2a910c97 /spec
parent5067a4650248f3686245562082ddfb175428161d (diff)
rb_gc_impl_malloc can return NULL
Let there be rooms for each GC implementations how to handle multi threaded situations. They can be totally reentrant, or can have their own mutex, or can rely on rb_thread_call_with_gvl. In any ways the allocator (has been, but now officially is) expected to run properly without a GVL. This means there need be a way for them to inform the interpreter about their allocation failures, without relying on raising exceptions. Let them do so by returning NULL.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12188
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions