From fe110b69c6441ea2582cfbe5636cf611ec308952 Mon Sep 17 00:00:00 2001 From: Gabriel Southern Date: Mon, 10 Feb 2014 15:54:45 -0800 Subject: [PATCH] Remove unused main_thread parameter from Thread::create. --- vm/agent.cpp | 2 +- vm/builtin/thread.cpp | 2 +- vm/builtin/thread.hpp | 2 +- vm/gc/finalize.cpp | 2 +- vm/gc/immix_marker.cpp | 2 +- vm/signal.cpp | 2 +- vm/vm.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/vm/agent.cpp b/vm/agent.cpp index c0fddafca0..ea7ed15100 100644 --- a/vm/agent.cpp +++ b/vm/agent.cpp @@ -444,7 +444,7 @@ namespace rubinius { vm_ = state->shared().new_vm(); exit_ = false; - thread_.set(Thread::create(state, vm_, G(thread), query_agent_tramp, false, true)); + thread_.set(Thread::create(state, vm_, G(thread), query_agent_tramp, true)); run(state); } diff --git a/vm/builtin/thread.cpp b/vm/builtin/thread.cpp index 184f67a48d..a277712843 100644 --- a/vm/builtin/thread.cpp +++ b/vm/builtin/thread.cpp @@ -46,7 +46,7 @@ namespace rubinius { } Thread* Thread::create(STATE, VM* target, Object* self, Run runner, - bool main_thread, bool system_thread) + bool system_thread) { Thread* thr = state->vm()->new_object_mature(G(thread)); diff --git a/vm/builtin/thread.hpp b/vm/builtin/thread.hpp index 02d40d34f7..8b55ccdaf3 100644 --- a/vm/builtin/thread.hpp +++ b/vm/builtin/thread.hpp @@ -287,7 +287,7 @@ namespace rubinius { * @see Thread::allocate(). */ static Thread* create(STATE, VM* target, Object* self, Run runner, - bool main_thread = false, bool system_thread = false); + bool system_thread = false); int start_new_thread(STATE, const pthread_attr_t &attrs); static void* in_new_thread(void*); diff --git a/vm/gc/finalize.cpp b/vm/gc/finalize.cpp index 46817a57cf..e1606fec46 100644 --- a/vm/gc/finalize.cpp +++ b/vm/gc/finalize.cpp @@ -126,7 +126,7 @@ namespace rubinius { self_ = state->shared().new_vm(); paused_ = false; exit_ = false; - thread_.set(Thread::create(state, self_, G(thread), finalizer_handler_tramp, false, true)); + thread_.set(Thread::create(state, self_, G(thread), finalizer_handler_tramp, true)); run(state); } diff --git a/vm/gc/immix_marker.cpp b/vm/gc/immix_marker.cpp index 75fd0d5f6d..375869e606 100644 --- a/vm/gc/immix_marker.cpp +++ b/vm/gc/immix_marker.cpp @@ -52,7 +52,7 @@ namespace rubinius { self_ = state->shared().new_vm(); paused_ = false; exit_ = false; - thread_.set(Thread::create(state, self_, G(thread), immix_marker_tramp, false, true)); + thread_.set(Thread::create(state, self_, G(thread), immix_marker_tramp, true)); run(state); } diff --git a/vm/signal.cpp b/vm/signal.cpp index cabba495ee..66d314fdc6 100644 --- a/vm/signal.cpp +++ b/vm/signal.cpp @@ -69,7 +69,7 @@ namespace rubinius { self_ = state->shared().new_vm(); paused_ = false; exit_ = false; - thread_.set(Thread::create(state, self_, G(thread), signal_handler_tramp, false, true)); + thread_.set(Thread::create(state, self_, G(thread), signal_handler_tramp, true)); run(state); } diff --git a/vm/vm.cpp b/vm/vm.cpp index bada4c32fd..9a3b689ab0 100644 --- a/vm/vm.cpp +++ b/vm/vm.cpp @@ -134,7 +134,7 @@ namespace rubinius { // Setup the main Thread, which is wrapper of the main native thread // when the VM boots. - thread.set(Thread::create(&state, this, G(thread), 0, true), &globals().roots); + thread.set(Thread::create(&state, this, G(thread), 0), &globals().roots); thread->alive(&state, cTrue); thread->sleep(&state, cFalse);