aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-09 16:56:40 +0900
committerNARUSE, Yui <naruse@airemix.jp>2020-03-13 22:08:42 +0900
commit9f504bb474770f1cac68988eac2a410e41c4bbb8 (patch)
tree1769d25546512f4472efee665001c48aede3ba96 /internal.h
parent047dfbdf69e1a300109c729c66b6a761032402dd (diff)
downloadruby-9f504bb474770f1cac68988eac2a410e41c4bbb8.tar.gz
Separate objspace argument for rb_gc_disable and rb_gc_enable
(cherry picked from commit aeaf0dc55595b8a5bfdd92007fb85ef13855c632)
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index baefb36c02..98df7a477d 100644
--- a/internal.h
+++ b/internal.h
@@ -1635,6 +1635,8 @@ void Init_heap(void);
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 *);
#if USE_RGENGC
void rb_gc_writebarrier_remember(VALUE obj);
#else
@@ -2339,6 +2341,7 @@ enum method_missing_reason {
struct rb_callable_method_entry_struct;
struct rb_method_definition_struct;
struct rb_execution_context_struct;
+struct rb_objspace; /* in vm_core.h */
struct rb_control_frame_struct;
struct rb_calling_info;
struct rb_call_data;