diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 14:48:02 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 14:48:02 +0000 |
commit | ec62e301965c12a5e1e0f931a8b0152d374a1912 (patch) | |
tree | 41a80201be2f0641e55e2676a2afefb3a7301e17 /gc.c | |
parent | 08c8605de91d2f04dcb53672a2eca6bd3f77bb18 (diff) | |
download | ruby-ec62e301965c12a5e1e0f931a8b0152d374a1912.tar.gz |
* gc.c (init_heap): call init_mark_stack before to allocate
altstack. This change avoid the stack overflow at the signal
handler on 32bit, but I don't understand reason... [Feature #7095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -587,6 +587,8 @@ static void init_heap(rb_objspace_t *objspace) { add_heap_slots(objspace, HEAP_MIN_SLOTS / HEAP_OBJ_LIMIT); + init_mark_stack(&objspace->mark_stack); + #ifdef USE_SIGALTSTACK { /* altstack of another threads are allocated in another place */ @@ -599,7 +601,6 @@ init_heap(rb_objspace_t *objspace) objspace->profile.invoke_time = getrusage_time(); finalizer_table = st_init_numtable(); - init_mark_stack(&objspace->mark_stack); } static void |