Skip to content

Commit 190d1bf

Browse files
charliesomeCharlie Somerville
authored andcommitted
* method.h: rearrange rb_method_definition_struct to save 8 bytes in
padding on 64 bit platforms. Patch by Eric Wong. [Feature ruby#9441] [ruby-core:59993] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7c1f5af commit 190d1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

method.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ typedef struct rb_iseq_struct rb_iseq_t;
7777

7878
typedef struct rb_method_definition_struct {
7979
rb_method_type_t type; /* method type */
80+
int alias_count;
8081
ID original_id;
8182
union {
8283
rb_iseq_t * const iseq; /* should be mark */
@@ -91,7 +92,6 @@ typedef struct rb_method_definition_struct {
9192
} optimize_type;
9293
struct rb_method_entry_struct *orig_me;
9394
} body;
94-
int alias_count;
9595
} rb_method_definition_t;
9696

9797
typedef struct rb_method_entry_struct {

0 commit comments

Comments
 (0)