summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2019-11-01 15:56:02 +0900
committer卜部昌平 <[email protected]>2019-11-01 16:58:19 +0900
commitf5e406327200672f95d61c4ca4ffc9de03e6a5a7 ()
treeeee27880c3ffd7fb2a433058ef75f2acdad96235 /internal.h
parentfb495b2928545e44cc9859f7cc743032d92ca9ee (diff)
ruby_mimmalloc can return NULL
malloc can fail. Should treat such situations.
-rw-r--r--internal.h2
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