summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 10:01:54 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 10:01:54 +0000
commitf8a9d044f416e04e0c340fe77bf5c603fc753ff2 (patch)
treedf3d94237a6d12d099e235ba62bb743549b5b1b4 /vm_core.h
parente6f133b66aa705d1022dcb8dbe48cf93acec519b (diff)
move fields from `th` to `ec`.
* vm_core.h: move rb_thread_t::passed_block_handler to rb_execution_context_t::passed_block_handler. Also move rb_thread_t::passed_bmethod_me to rb_execution_context_t::passed_bmethod_me. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/vm_core.h b/vm_core.h
index 73805a131e..7c04d5f022 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -765,6 +765,12 @@ typedef struct rb_execution_context_struct {
rb_fiber_t *fiber;
+ /* for rb_iterate */
+ VALUE passed_block_handler;
+
+ /* for bmethod */
+ const rb_callable_method_entry_t *passed_bmethod_me;
+
/* for GC */
struct {
VALUE *stack_start;
@@ -790,12 +796,6 @@ typedef struct rb_thread_struct {
VALUE last_status; /* $? */
- /* for rb_iterate */
- VALUE passed_block_handler;
-
- /* for bmethod */
- const rb_callable_method_entry_t *passed_bmethod_me;
-
/* for cfunc */
struct rb_calling_info *calling;