summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-17 17:24:34 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-17 17:24:34 (GMT)
commit093c3893902d04f1e72dd08403ddd15e64b0b2a1 (patch)
treeaef1cf1da330e1a1490cd28e62f5cb75283700bd /vm_core.h
parente6a10e89b197c70263917677d07e9fbc21f3b443 (diff)
vm_core.h: bit flags
* vm_core.h (rb_vm_struct, rb_thread_struct): make flags bit fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/vm_core.h b/vm_core.h
index 9ae7247..feb71f0 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -493,9 +493,9 @@ typedef struct rb_vm_struct {
size_t living_thread_num;
VALUE thgroup_default;
- int running;
- int thread_abort_on_exception;
- int trace_running;
+ unsigned int running: 1;
+ unsigned int thread_abort_on_exception: 1;
+ unsigned int trace_running: 1;
volatile int sleeper;
/* object management */
@@ -784,8 +784,8 @@ typedef struct rb_thread_struct {
rb_ensure_list_t *ensure_list;
/* misc */
- enum method_missing_reason method_missing_reason;
- int abort_on_exception;
+ enum method_missing_reason method_missing_reason: 8;
+ unsigned int abort_on_exception: 1;
#ifdef USE_SIGALTSTACK
void *altstack;
#endif