public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
diff --git a/gc.c b/gc.c
index fbfcc3b..053f2af 100644
--- a/gc.c
+++ b/gc.c
@@ -585,6 +585,10 @@ static void
init_heap(rb_objspace_t *objspace)
{
add_heap_slots(objspace, HEAP_MIN_SLOTS / HEAP_OBJ_LIMIT);
+ objspace->profile.invoke_time = getrusage_time();
+ finalizer_table = st_init_numtable();
+ init_mark_stack(&objspace->mark_stack);
+
#ifdef USE_SIGALTSTACK
{
/* altstack of another threads are allocated in another place */
@@ -594,10 +598,6 @@ init_heap(rb_objspace_t *objspace)
free(tmp); /* free previously allocated area */
}
#endif
-
- objspace->profile.invoke_time = getrusage_time();
- finalizer_table = st_init_numtable();
- init_mark_stack(&objspace->mark_stack);
}
static void

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.