summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm.c11
2 files changed, 7 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index f611d123fd..127069eb36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Feb 12 14:42:11 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (th_init): rename from th_init2.
+
Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
diff --git a/vm.c b/vm.c
index 8017c42dea..571942565f 100644
--- a/vm.c
+++ b/vm.c
@@ -1781,7 +1781,7 @@ thread_alloc(VALUE klass)
}
static void
-th_init2(rb_thread_t *th, VALUE self)
+th_init(rb_thread_t *th, VALUE self)
{
th->self = self;
@@ -1797,12 +1797,7 @@ th_init2(rb_thread_t *th, VALUE self)
th->status = THREAD_RUNNABLE;
th->errinfo = Qnil;
th->last_status = Qnil;
-}
-
-static void
-th_init(rb_thread_t *th, VALUE self)
-{
- th_init2(th, self);
+ th->waiting_fd = -1;
}
static VALUE
@@ -2142,7 +2137,7 @@ Init_BareVM(void)
ruby_current_vm = vm;
Init_native_thread();
- th_init2(th, 0);
+ th_init(th, 0);
th->vm = vm;
ruby_thread_init_stack(th);
}