Index: runtime/vm/thread_pool.cc |
diff --git a/runtime/vm/thread_pool.cc b/runtime/vm/thread_pool.cc |
index d5472a661001541f0d95bb3d2474b173ef3e7d0d..ca2e4bf478a83d1645ee5184826a3e31d4dde029 100644 |
--- a/runtime/vm/thread_pool.cc |
+++ b/runtime/vm/thread_pool.cc |
@@ -333,7 +333,9 @@ void ThreadPool::Worker::StartThread() { |
ASSERT(task_ != NULL); |
} |
#endif |
- int result = OSThread::Start(&Worker::Main, reinterpret_cast<uword>(this)); |
+ int result = OSThread::Start("Dart ThreadPool Worker", |
+ &Worker::Main, |
+ reinterpret_cast<uword>(this)); |
if (result != 0) { |
FATAL1("Could not start worker thread: result = %d.", result); |
} |
@@ -417,9 +419,6 @@ void ThreadPool::Worker::Shutdown() { |
// static |
void ThreadPool::Worker::Main(uword args) { |
- Thread::EnsureInit(); |
- Thread* thread = Thread::Current(); |
- thread->set_name("Dart ThreadPool Worker"); |
Worker* worker = reinterpret_cast<Worker*>(args); |
ThreadId id = OSThread::GetCurrentThreadId(); |
ThreadJoinId join_id = OSThread::GetCurrentThreadJoinId(); |