diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-26 07:30:26 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-26 07:30:26 +0000 |
commit | a9c7629ece428e1de9119137a1b3f2e899b9d9e7 (patch) | |
tree | b67ee810d12903d1324fd163e4128ec6db508c84 /vm_core.h | |
parent | 98c9581b039e9fbe92b5285186c30087b648890b (diff) |
rb_iseq_t: reduce to (280 bytes from 288 bytes) on 64-bit
iseq_size and line_info_size may be 32-bit.
4GB instruction sequences should be big enough for anyone.
Other existing line info counters are 32-bit, and nobody
should need all that.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -214,13 +214,14 @@ struct rb_iseq_struct { VALUE *iseq; /* iseq (insn number and operands) */ VALUE *iseq_encoded; /* encoded iseq */ - unsigned long iseq_size; + unsigned int iseq_size; + unsigned int line_info_size; + const VALUE mark_ary; /* Array: includes operands which should be GC marked */ const VALUE coverage; /* coverage array */ /* insn info, must be freed */ struct iseq_line_info_entry *line_info_table; - size_t line_info_size; ID *local_table; /* must free */ int local_table_size; |