dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] gc.c (struct heap_page): trivial packing
@ 2014-11-03  1:21 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-11-03  1:21 UTC (permalink / raw)
  To: spew

304 => 296 bytes on x86-64
---
 gc.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/gc.c b/gc.c
index 2139fd5..7bdd4ea 100644
--- a/gc.c
+++ b/gc.c
@@ -613,18 +613,17 @@ struct heap_page {
     int total_slots;
     int free_slots;
     int final_slots;
-
-    struct heap_page *free_next;
-    RVALUE *start;
-    RVALUE *freelist;
-    struct heap_page *next;
-
     struct {
 	unsigned int before_sweep : 1;
 	unsigned int has_remembered_objects : 1;
 	unsigned int has_long_lived_shady_objects : 1;
     } flags;
 
+    struct heap_page *free_next;
+    RVALUE *start;
+    RVALUE *freelist;
+    struct heap_page *next;
+
 #if USE_RGENGC
     bits_t wb_unprotected_bits[HEAP_BITMAP_LIMIT];
 #endif
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-03  1:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03  1:21 [PATCH] gc.c (struct heap_page): trivial packing Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).