diff options
author | Peter Zhu <[email protected]> | 2024-12-24 17:46:43 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-01-02 11:03:04 -0500 |
commit | 99ff0224a564b59df3ba8fbd7911dd41a7fdde34 () | |
tree | 50119e2d938e21080f7950ab9f067a0f63b78ce3 /include/ruby | |
parent | b8c4af24f920a973cfa1f7b671825e8a5421368c (diff) |
Move rbimpl_size_add_overflow from gc.c to memory.h
Notes: Merged: https://.com/ruby/ruby/pull/12459
-rw-r--r-- | include/ruby/internal/memory.h | 87 |
1 files changed, 87 insertions, 0 deletions
@@ -488,6 +488,18 @@ RBIMPL_ATTR_NORETURN() */ void ruby_malloc_size_overflow(size_t x, size_t y); #ifdef HAVE_RB_GC_GUARDED_PTR_VAL volatile VALUE *rb_gc_guarded_ptr_val(volatile VALUE *ptr, VALUE val); #endif @@ -635,6 +647,81 @@ rbimpl_size_mul_or_raise(size_t x, size_t y) } } /** * This is an implementation detail of #RB_ALLOCV_N(). People don't use this * directly. |