Permalink
Browse files

* method.h: rearrange rb_method_definition_struct to save 8 bytes in

  padding on 64 bit platforms. Patch by Eric Wong.

  [Feature #9441] [ruby-core:59993]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 3aeff61 commit 25daaafa3d32be5bf6b13bf7b917128135366f6d @charliesome charliesome committed Jan 23, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 method.h
View
@@ -77,6 +77,7 @@ typedef struct rb_iseq_struct rb_iseq_t;
typedef struct rb_method_definition_struct {
rb_method_type_t type; /* method type */
+ int alias_count;
ID original_id;
union {
rb_iseq_t * const iseq; /* should be mark */
@@ -91,7 +92,6 @@ typedef struct rb_method_definition_struct {
} optimize_type;
struct rb_method_entry_struct *orig_me;
} body;
- int alias_count;
} rb_method_definition_t;
typedef struct rb_method_entry_struct {

0 comments on commit 25daaaf

Please sign in to comment.