[前][次][番号順一覧][スレッド一覧]

ruby-changes:20885

From: kosaki <ko1@a...>
Date: Thu, 11 Aug 2011 21:33:30 +0900 (JST)
Subject: [ruby-changes:20885] kosaki:r32934 (ruby_1_9_3): merge revision(s) 32821:

kosaki	2011-08-11 21:33:21 +0900 (Thu, 11 Aug 2011)

  New Revision: 32934

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32934

  Log:
    merge revision(s) 32821:
    ------------------------------------------------------------------------
    r32821 | naruse | 2011-08-03 00:39:10 +0900 (Wed, 03 Aug 2011) | 1 line
    
    Refix r32815.
    ------------------------------------------------------------------------

  Modified files:
    branches/ruby_1_9_3/gc.c

Index: ruby_1_9_3/gc.c
===================================================================
--- ruby_1_9_3/gc.c	(revision 32933)
+++ ruby_1_9_3/gc.c	(revision 32934)
@@ -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/

[前][次][番号順一覧][スレッド一覧]