summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-21 14:04:05 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-21 14:04:05 +0000
commit0af19735d79535c3ada552b8caaf8c00610b4f88 (patch)
tree0908ddd665608003212cc517834a966744cf078f /vm.c
parent48efa44719d03eb067d27b30c68cf821074aedce (diff)
mjit.c: RubyVM::MJIT.pause / RubyVM::MJIT.resume
[Feature #14830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 7a40e79..4827a30 100644
--- a/vm.c
+++ b/vm.c
@@ -2780,6 +2780,9 @@ mjit_enabled_p(void)
return mjit_init_p ? Qtrue : Qfalse;
}
+extern VALUE mjit_pause(void);
+extern VALUE mjit_resume(void);
+
extern VALUE *rb_gc_stack_start;
extern size_t rb_gc_stack_maxsize;
#ifdef __ia64
@@ -2868,6 +2871,8 @@ Init_VM(void)
/* RubyVM::MJIT */
mjit = rb_define_module_under(rb_cRubyVM, "MJIT");
rb_define_singleton_method(mjit, "enabled?", mjit_enabled_p, 0);
+ rb_define_singleton_method(mjit, "pause", mjit_pause, 0);
+ rb_define_singleton_method(mjit, "resume", mjit_resume, 0);
/*
* Document-class: Thread