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:
parent
2392f45289
commit
ae1bccf7a4
1 changed files with 3 additions and 2 deletions
5
gc.c
5
gc.c
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue