summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-02 09:01:51 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-02 09:01:51 +0000
commit2b3243d7fae2b245211bee410e24bc40245877ca (patch)
tree949ad697f40fa188a683c891b42addadf4af4281 /gc.c
parent8bd7f1ecc572ff4589c6d6183b3d7a83e10c8b7f (diff)
* 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/branches/ruby_1_8@10014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index a77f962..3597b1a 100644
--- a/gc.c
+++ b/gc.c
@@ -276,6 +276,10 @@ rb_global_variable(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 {
union {
struct {
@@ -305,6 +309,10 @@ typedef struct RVALUE {
#endif
} RVALUE;
+#if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)
+#pragma pack(pop)
+#endif
+
static RVALUE *freelist = 0;
static RVALUE *deferred_final_list = 0;