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

ruby-changes:20120

From: kosaki <ko1@a...>
Date: Sat, 18 Jun 2011 21:39:12 +0900 (JST)
Subject: [ruby-changes:20120] kosaki:r32168 (trunk): * thread_pthread.c: remove GVL_DEBUG

kosaki	2011-06-18 21:39:01 +0900 (Sat, 18 Jun 2011)

  New Revision: 32168

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

  Log:
    * thread_pthread.c: remove GVL_DEBUG

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32167)
+++ ChangeLog	(revision 32168)
@@ -1,3 +1,7 @@
+Sat Jun 18 21:36:29 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread_pthread.c: remove GVL_DEBUG
+
 Sat Jun 18 21:32:02 2011  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32167)
+++ thread_pthread.c	(revision 32168)
@@ -40,12 +40,9 @@
 #define USE_MONOTONIC_COND 0
 #endif
 
-#define GVL_DEBUG 0
-
 static void
 __gvl_acquire(rb_vm_t *vm)
 {
-
     if (vm->gvl.acquired) {
 	vm->gvl.waiting++;
 	while (vm->gvl.acquired) {
@@ -127,8 +124,6 @@
 static void
 gvl_init(rb_vm_t *vm)
 {
-    if (GVL_DEBUG) fprintf(stderr, "gvl init\n");
-
     native_mutex_initialize(&vm->gvl.lock);
     native_cond_initialize(&vm->gvl.cond, RB_CONDATTR_CLOCK_MONOTONIC);
     native_cond_initialize(&vm->gvl.switch_cond, RB_CONDATTR_CLOCK_MONOTONIC);
@@ -141,14 +136,12 @@
 static void
 gvl_destroy(rb_vm_t *vm)
 {
-    if (GVL_DEBUG) fprintf(stderr, "gvl destroy\n");
     native_mutex_destroy(&vm->gvl.lock);
 }
 
 static void
 gvl_atfork(rb_vm_t *vm)
 {
-    if (GVL_DEBUG) fprintf(stderr, "gvl atfork\n");
     gvl_init(vm);
     gvl_acquire(vm, GET_THREAD());
 }

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

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