* gc.c: commited magic for reducing RVALUE size on windows. (24->20byte)

[ruby-core:7474]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2006-03-02 09:01:51 +00:00
Родитель ecebbcce1f
Коммит 6f09379196
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Thu Mar 2 17:54:45 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* gc.c: commited magic for reducing RVALUE size on windows. (24->20byte)
[ruby-core:7474]
Thu Mar 2 14:12:26 2006 Tanaka Akira <akr@m17n.org> Thu Mar 2 14:12:26 2006 Tanaka Akira <akr@m17n.org>
* gc.c: align VALUE with sizeof(RVALUE) globally. * gc.c: align VALUE with sizeof(RVALUE) globally.

8
gc.c
Просмотреть файл

@ -310,6 +310,10 @@ rb_global_variable(VALUE *var)
rb_gc_register_address(var); rb_gc_register_address(var);
} }
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
#pragma pack(push, 1) /* magic for reducing sizeof(RVALUE): 24 -> 20 */
#endif
typedef struct RVALUE { typedef struct RVALUE {
union { union {
struct { struct {
@ -339,6 +343,10 @@ typedef struct RVALUE {
#endif #endif
} RVALUE; } RVALUE;
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
#pragma pack(pop)
#endif
static RVALUE *freelist = 0; static RVALUE *freelist = 0;
static RVALUE *deferred_final_list = 0; static RVALUE *deferred_final_list = 0;