ruby-changes:20773
From: naruse <ko1@a...>
Date: Wed, 3 Aug 2011 00:39:19 +0900 (JST)
Subject: [ruby-changes:20773] naruse:r32821 (trunk): Refix r32815.
naruse 2011-08-03 00:39:10 +0900 (Wed, 03 Aug 2011) New Revision: 32821 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32821 Log: Refix r32815. Modified files: trunk/gc.c Index: gc.c =================================================================== --- gc.c (revision 32820) +++ gc.c (revision 32821) @@ -1089,8 +1089,9 @@ { /* 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/