mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rb_proc_t: reduce to 64 bytes from 72 on 64-bit
* vm_core.h (rb_proc_t): reduce to 64 bytes from 72 on 64-bit This allows rb_proc_t to fit inside a single cache line on x86-64 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a2c4b4c2a
commit
44c32c22b8
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Jul 20 14:26:27 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* vm_core.h (rb_proc_t): reduce to 64 bytes from 72 on 64-bit
|
||||
|
||||
Sun Jul 20 13:50:34 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* transcode.c (rb_econv_t): reduce to 184 bytes from 200 on 64-bit
|
||||
|
|
|
@ -738,9 +738,9 @@ typedef struct {
|
|||
|
||||
VALUE envval; /* for GC mark */
|
||||
VALUE blockprocval;
|
||||
int safe_level;
|
||||
int is_from_method;
|
||||
int is_lambda;
|
||||
int8_t safe_level; /* 0..4 */
|
||||
int8_t is_from_method; /* bool */
|
||||
int8_t is_lambda; /* bool */
|
||||
} rb_proc_t;
|
||||
|
||||
#define GetEnvPtr(obj, ptr) \
|
||||
|
|
Loading…
Add table
Reference in a new issue