diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-02-09 16:56:40 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-02-09 17:06:31 +0900 |
commit | aeaf0dc55595b8a5bfdd92007fb85ef13855c632 (patch) | |
tree | 9271d4f160e6732aa38b1c94bcc34d83fe0ec1e7 /internal/gc.h | |
parent | c47cd4be28840159251b4c66df71e10e979316a0 (diff) |
Separate objspace argument for rb_gc_disable and rb_gc_enable
Diffstat (limited to 'internal/gc.h')
-rw-r--r-- | internal/gc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/gc.h b/internal/gc.h index 36b534ed1f..86a3113b62 100644 --- a/internal/gc.h +++ b/internal/gc.h @@ -17,6 +17,7 @@ #include "ruby/ruby.h" /* for rb_event_flag_t */ struct rb_execution_context_struct; /* in vm_core.h */ +struct rb_objspace; /* in vm_core.h */ #ifdef NEWOBJ_OF # undef NEWOBJ_OF @@ -60,6 +61,8 @@ extern int ruby_disable_gc; void *ruby_mimmalloc(size_t size) RUBY_ATTR_MALLOC; void ruby_mimfree(void *ptr); void rb_objspace_set_event_hook(const rb_event_flag_t event); +VALUE rb_objspace_gc_enable(struct rb_objspace *); +VALUE rb_objspace_gc_disable(struct rb_objspace *); void ruby_gc_set_params(void); void rb_copy_wb_protected_attribute(VALUE dest, VALUE obj); #if __has_attribute(alloc_align) |