summaryrefslogtreecommitdiff
path: root/vm_exec.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-27 19:16:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-27 19:16:51 +0000
commit7e9aca40711ac3a72576bd397481fa1ba037b98c (patch)
tree794488b8f03dab818b1f10efd5f6317c0e3c7bf1 /vm_exec.c
parentbaa849443f6e1cd91ab48f17d5967e4a60bfc93f (diff)
catch up recent changes for call threaded code VM.
Fix compile errors for OPT_CALL_THREADED_CODE (in vm_opts.h). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_exec.c')
-rw-r--r--vm_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_exec.c b/vm_exec.c
index a452d047b7..ce47ab2cc3 100644
--- a/vm_exec.c
+++ b/vm_exec.c
@@ -140,9 +140,10 @@ rb_vm_get_insns_address_table(void)
}
static VALUE
-vm_exec_core(rb_execution_cntext_t *ec, VALUE initial)
+vm_exec_core(rb_execution_context_t *ec, VALUE initial)
{
register rb_control_frame_t *reg_cfp = ec->cfp;
+ rb_thread_t *th = rb_ec_thread_ptr(ec);
while (1) {
reg_cfp = ((rb_insn_func_t) (*GET_PC()))(ec, reg_cfp);