Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: runtime/vm/isolate.cc

Issue 796063006: Rename Thread -> OSThread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/lockers.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 42893)
+++ runtime/vm/isolate.cc (working copy)
@@ -29,7 +29,7 @@
#include "vm/stub_code.h"
#include "vm/symbols.h"
#include "vm/tags.h"
-#include "vm/thread.h"
+#include "vm/os_thread.h"
#include "vm/thread_interrupter.h"
#include "vm/timer.h"
#include "vm/visitor.h"
@@ -580,7 +580,7 @@
old_current->set_thread_state(NULL);
Profiler::EndExecution(old_current);
}
- Thread::SetThreadLocal(isolate_key, reinterpret_cast<uword>(current));
+ OSThread::SetThreadLocal(isolate_key, reinterpret_cast<uword>(current));
if (current != NULL) {
ASSERT(current->thread_state() == NULL);
InterruptableThreadState* thread_state =
@@ -600,13 +600,13 @@
// for a thread. Since an Isolate is the central repository for
// storing all isolate specific information a single thread local key
// is sufficient.
-ThreadLocalKey Isolate::isolate_key = Thread::kUnsetThreadLocalKey;
+ThreadLocalKey Isolate::isolate_key = OSThread::kUnsetThreadLocalKey;
void Isolate::InitOnce() {
- ASSERT(isolate_key == Thread::kUnsetThreadLocalKey);
- isolate_key = Thread::CreateThreadLocal();
- ASSERT(isolate_key != Thread::kUnsetThreadLocalKey);
+ ASSERT(isolate_key == OSThread::kUnsetThreadLocalKey);
+ isolate_key = OSThread::CreateThreadLocal();
+ ASSERT(isolate_key != OSThread::kUnsetThreadLocalKey);
create_callback_ = NULL;
isolates_list_monitor_ = new Monitor();
ASSERT(isolates_list_monitor_ != NULL);
@@ -693,8 +693,8 @@
// TODO(5411455): Use flag to override default value and Validate the
// stack size by querying OS.
uword Isolate::GetSpecifiedStackSize() {
- ASSERT(Isolate::kStackSizeBuffer < Thread::GetMaxStackSize());
- uword stack_size = Thread::GetMaxStackSize() - Isolate::kStackSizeBuffer;
+ ASSERT(Isolate::kStackSizeBuffer < OSThread::GetMaxStackSize());
+ uword stack_size = OSThread::GetMaxStackSize() - Isolate::kStackSizeBuffer;
return stack_size;
}
@@ -1365,7 +1365,7 @@
ProfileIdle();
return 1;
}
- ASSERT(state->id != Thread::kInvalidThreadId);
+ ASSERT(state->id != OSThread::kInvalidThreadId);
ThreadInterrupter::InterruptThread(state);
return 1;
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/lockers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698