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

Unified Diff: runtime/vm/thread_pool.cc

Issue 1815533002: Set the stack base value for thread pool threads at the start so that profile ticks for threads sho… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_pool.cc
diff --git a/runtime/vm/thread_pool.cc b/runtime/vm/thread_pool.cc
index 70bac99675bfd66b65c0e53418dea7ae99caf57d..fb0f7d7c69b2fac5d7d1af0843eaa2e08c87500f 100644
--- a/runtime/vm/thread_pool.cc
+++ b/runtime/vm/thread_pool.cc
@@ -433,6 +433,9 @@ void ThreadPool::Worker::Main(uword args) {
ThreadJoinId join_id = os_thread->join_id();
ThreadPool* pool;
+ // Set the thread's stack_base based on the current stack pointer.
+ os_thread->set_stack_base(Thread::GetCurrentStackPointer());
+
{
MonitorLocker ml(&worker->monitor_);
ASSERT(worker->task_);
« no previous file with comments | « runtime/vm/thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698