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

ruby-changes:35308

From: normal <ko1@a...>
Date: Fri, 5 Sep 2014 06:05:45 +0900 (JST)
Subject: [ruby-changes:35308] normal:r47390 (trunk): vm.c: remove unused USE_THREAD_RECYCLE [misc #10198]

normal	2014-09-05 06:05:31 +0900 (Fri, 05 Sep 2014)

  New Revision: 47390

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

  Log:
    vm.c: remove unused USE_THREAD_RECYCLE [misc #10198]
    
    Unused feature, and it is a no-op even if enabled.

  Modified files:
    trunk/ChangeLog
    trunk/vm.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47389)
+++ ChangeLog	(revision 47390)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep  5 06:04:22 2014  Eric Wong  <e@8...>
+
+	* vm.c: remove unused USE_THREAD_RECYCLE [misc #10198]
+
 Fri Sep  5 00:29:08 2014  Tanaka Akira  <akr@f...>
 
 	* configure.in (dirfd): Check function.
Index: vm.c
===================================================================
--- vm.c	(revision 47389)
+++ vm.c	(revision 47390)
@@ -1967,16 +1967,6 @@ rb_thread_recycle_stack_release(VALUE *s https://github.com/ruby/ruby/blob/trunk/vm.c#L1967
     ruby_xfree(stack);
 }
 
-#ifdef USE_THREAD_RECYCLE
-static rb_thread_t *
-thread_recycle_struct(void)
-{
-    void *p = ALLOC_N(rb_thread_t, 1);
-    memset(p, 0, sizeof(rb_thread_t));
-    return p;
-}
-#endif
-
 void
 rb_thread_mark(void *ptr)
 {
@@ -2134,13 +2124,9 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/vm.c#L2124
 thread_alloc(VALUE klass)
 {
     VALUE volatile obj;
-#ifdef USE_THREAD_RECYCLE
-    rb_thread_t *th = thread_recycle_struct();
-    obj = TypedData_Wrap_Struct(klass, &thread_data_type, th);
-#else
     rb_thread_t *th;
     obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);
-#endif
+
     return obj;
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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