1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Refix r32815.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-08-02 15:39:10 +00:00
parent 2392f45289
commit ae1bccf7a4

5
gc.c
View file

@ -1089,8 +1089,9 @@ init_heap(rb_objspace_t *objspace)
{
/* altstack of another threads are allocated in another place */
rb_thread_t *th = GET_THREAD();
free(th->altstack); /* free previously allocated area */
th->altstack = xmalloc(ALT_STACK_SIZE);
void *tmp = th->altstack;
th->altstack = malloc(ALT_STACK_SIZE);
free(tmp); /* free previously allocated area */
}
#endif