From 9d09240d9e329bbe5a8168dd850f5bb3549fbaa9 Mon Sep 17 00:00:00 2001 From: normal Date: Tue, 9 May 2017 05:06:41 +0000 Subject: rb_execution_context_t: move stack, stack_size and cfp from rb_thread_t The goal is to reduce rb_context_t and rb_fiber_t size by removing the need to store the entire rb_thread_t in there. [ruby-core:81045] Work-in-progress: soon, we will move more fields here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_intern.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval_intern.h') diff --git a/eval_intern.h b/eval_intern.h index e0f030f741..ed6ec47ae6 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -14,10 +14,10 @@ vm_passed_block_handler_set(rb_thread_t *th, VALUE block_handler) static inline void pass_passed_block_handler(rb_thread_t *th) { - VALUE block_handler = rb_vm_frame_block_handler(th->cfp); + VALUE block_handler = rb_vm_frame_block_handler(th->ec.cfp); VM_ASSERT(vm_block_handler_verify(block_handler)); vm_passed_block_handler_set(th, block_handler); - VM_ENV_FLAGS_SET(th->cfp->ep, VM_FRAME_FLAG_PASSED); + VM_ENV_FLAGS_SET(th->ec.cfp->ep, VM_FRAME_FLAG_PASSED); } #define PASS_PASSED_BLOCK_HANDLER_TH(th) pass_passed_block_handler(th) -- cgit v1.2.1