diff options
author | 卜部昌平 <[email protected]> | 2019-11-01 15:56:02 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-11-01 16:58:19 +0900 |
commit | f5e406327200672f95d61c4ca4ffc9de03e6a5a7 () | |
tree | eee27880c3ffd7fb2a433058ef75f2acdad96235 /internal.h | |
parent | fb495b2928545e44cc9859f7cc743032d92ca9ee (diff) |
ruby_mimmalloc can return NULL
malloc can fail. Should treat such situations.
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1606,7 +1606,7 @@ NORETURN(void rb_syserr_fail_path_in(const char *func_name, int err, VALUE path) extern VALUE *ruby_initial_gc_stress_ptr; extern int ruby_disable_gc; void Init_heap(void); -void *ruby_mimmalloc(size_t size); void ruby_mimfree(void *ptr); void rb_objspace_set_event_hook(const rb_event_flag_t event); #if USE_RGENGC |