From b4933f2a66baecf8abe4ecd4020ee7d042c1eea4 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 10 Aug 2017 04:55:12 +0000 Subject: rename rb_execution_context_t::stack(_size) to vm_stack(_size). * vm_core.h: Ruby processes run with two stacks, a machine stack and a VM stack. To make it clear, this fix renames rb_execution_context_t::stack(_size) to vm_stack(_size). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 6b31bab995..2b6f7849fd 100644 --- a/eval.c +++ b/eval.c @@ -1127,7 +1127,7 @@ previous_frame(rb_thread_t *th) { rb_control_frame_t *prev_cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->ec.cfp); /* check if prev_cfp can be accessible */ - if ((void *)(th->ec.stack + th->ec.stack_size) == (void *)(prev_cfp)) { + if ((void *)(th->ec.vm_stack + th->ec.vm_stack_size) == (void *)(prev_cfp)) { return 0; } return prev_cfp; -- cgit v1.2.3