aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 09:43:52 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 09:43:52 +0000
commit5659d418d91d9757e0c2dc4b95b1f850575cfb5e (patch)
treebf6fc088df929e6f1fadf9b6ee6eb16a81ae2632 /vm_core.h
parent8a203c8d44d79df4a394012bf71afd6b3ef40577 (diff)
downloadruby-5659d418d91d9757e0c2dc4b95b1f850575cfb5e.tar.gz
move "state" to rb_vm_tag.
* vm_core.h (rb_thread_t::tag_state): move to "rb_vm_tag::state". Lifetime of "state" should be same as current tag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index 6c1b9665c9..9081bcea3d 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -691,8 +691,9 @@ typedef RUBY_JMP_BUF rb_jmpbuf_t;
struct rb_vm_tag {
VALUE tag;
VALUE retval;
- rb_jmpbuf_t buf;
struct rb_vm_tag *prev;
+ enum ruby_tag_type state;
+ rb_jmpbuf_t buf;
};
struct rb_vm_protect_tag {
@@ -743,9 +744,6 @@ typedef struct rb_thread_struct {
int raised_flag;
VALUE last_status; /* $? */
- /* passing state */
- enum ruby_tag_type tag_state;
-
/* for rb_iterate */
VALUE passed_block_handler;