summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-19 20:56:10 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-19 20:56:10 +0000
commit62c3610583fbdb2105714117f7acac89e9ab1da4 (patch)
tree2da22442d3bc994c04ecc55c95cc1db00f3aea10 /vm_core.h
parent98d0ccc86afb6b8e726966f4ed17cfb4e645d307 (diff)
rb_execution_context_t: pack bits, 256 -> 252 bytes (on 32-bit)
Maybe execution contexts will become more common. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index 9716aff3fc..7b795bb5cb 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -845,8 +845,12 @@ typedef struct rb_execution_context_struct {
VALUE errinfo;
VALUE passed_block_handler; /* for rb_iterate */
const rb_callable_method_entry_t *passed_bmethod_me; /* for bmethod */
- int raised_flag;
- enum method_missing_reason method_missing_reason;
+
+ uint8_t raised_flag; /* only 3 bits needed */
+
+ /* n.b. only 7 bits needed, really: */
+ BITFIELD(enum method_missing_reason, method_missing_reason, 8);
+
VALUE private_const_reference;
/* for GC */