summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gc.c b/gc.c
index ec1bc7ba93..d1150b89d9 100644
--- a/gc.c
+++ b/gc.c
@@ -435,13 +435,14 @@ typedef struct mark_stack {
} mark_stack_t;
typedef struct rb_heap_struct {
- struct heap_page *pages;
+ RVALUE *freelist;
+
struct heap_page *free_pages;
struct heap_page *using_page;
+ struct heap_page *pages;
struct heap_page *sweep_pages;
struct heap_page *pooled_pages;
- RVALUE *freelist;
size_t page_length; /* total page count in a heap */
size_t total_slots; /* total slot count (page_length * HEAP_OBJ_LIMIT) */
} rb_heap_t;
@@ -477,15 +478,15 @@ typedef struct rb_objspace {
#endif
} flags;
+ rb_heap_t eden_heap;
+ rb_heap_t tomb_heap; /* heap for zombies and ghosts */
+
struct {
rb_atomic_t finalizing;
} atomic_flags;
size_t marked_objects;
- rb_heap_t eden_heap;
- rb_heap_t tomb_heap; /* heap for zombies and ghosts */
-
struct {
struct heap_page **sorted;
size_t used;