ruby-changes:32607
From: charliesome <ko1@a...>
Date: Thu, 23 Jan 2014 13:59:38 +0900 (JST)
Subject: [ruby-changes:32607] charliesome:r44686 (trunk): * method.h: rearrange rb_method_definition_struct to save 8 bytes in
charliesome 2014-01-23 13:59:30 +0900 (Thu, 23 Jan 2014) New Revision: 44686 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44686 Log: * 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] Modified files: trunk/method.h Index: method.h =================================================================== --- method.h (revision 44685) +++ method.h (revision 44686) @@ -77,6 +77,7 @@ typedef struct rb_iseq_struct rb_iseq_t; https://github.com/ruby/ruby/blob/trunk/method.h#L77 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_stru https://github.com/ruby/ruby/blob/trunk/method.h#L92 } optimize_type; struct rb_method_entry_struct *orig_me; } body; - int alias_count; } rb_method_definition_t; typedef struct rb_method_entry_struct { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/