зеркало из https://github.com/github/ruby.git
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:
Родитель
a00b29a67f
Коммит
8ad7143327
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче