1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ruby.h: align

* include/ruby/ruby.h (RBasic): to be aligned on a VALUE size
  boundary.  [Bug #7647]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-01-08 17:13:26 +00:00
parent a00b29a67f
commit 8ad7143327
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jan 9 02:13:22 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* include/ruby/ruby.h (RBasic): to be aligned on a VALUE size
boundary. [Bug #7647]
Tue Jan 8 14:41:41 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_core.h (rb_iseq_t): move flip_cnt from struct iseq_compile_data,

View file

@ -699,7 +699,11 @@ VALUE rb_newobj_of(VALUE, VALUE);
struct RBasic {
VALUE flags;
VALUE klass;
};
}
#ifdef __GNUC__
__attribute__((aligned(sizeof(VALUE))))
#endif
;
#define ROBJECT_EMBED_LEN_MAX 3
struct RObject {