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