mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
move fields to ec.
* vm_core.h (rb_thread_t): move root_lep, root_svar and ensure_list to rb_execution_context_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7c7d74365d
commit
957d1ccdf9
6 changed files with 27 additions and 30 deletions
14
vm_core.h
14
vm_core.h
|
@ -751,6 +751,13 @@ typedef struct rb_thread_context_struct {
|
|||
st_table *local_storage;
|
||||
VALUE local_storage_recursive_hash;
|
||||
VALUE local_storage_recursive_hash_for_trace;
|
||||
|
||||
/* eval env */
|
||||
const VALUE *root_lep;
|
||||
VALUE root_svar;
|
||||
|
||||
/* ensure & callcc */
|
||||
rb_ensure_list_t *ensure_list;
|
||||
} rb_execution_context_t;
|
||||
|
||||
typedef struct rb_thread_struct {
|
||||
|
@ -775,10 +782,6 @@ typedef struct rb_thread_struct {
|
|||
VALUE top_self;
|
||||
VALUE top_wrapper;
|
||||
|
||||
/* eval env */
|
||||
const VALUE *root_lep;
|
||||
VALUE root_svar;
|
||||
|
||||
/* thread control */
|
||||
rb_nativethread_id_t thread_id;
|
||||
#ifdef NON_SCALAR_THREAD_ID
|
||||
|
@ -845,9 +848,6 @@ typedef struct rb_thread_struct {
|
|||
rb_fiber_t *root_fiber;
|
||||
rb_jmpbuf_t root_jmpbuf;
|
||||
|
||||
/* ensure & callcc */
|
||||
rb_ensure_list_t *ensure_list;
|
||||
|
||||
/* misc */
|
||||
enum method_missing_reason method_missing_reason: 8;
|
||||
unsigned int abort_on_exception: 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue