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

Unified Diff: Source/heap/ThreadState.cpp

Issue 113693002: [oilpan] Remove ThreadAffinity::MainThreadOnly Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Always uses thread-local storage Created 7 years 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 | « Source/heap/ThreadState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/ThreadState.cpp
diff --git a/Source/heap/ThreadState.cpp b/Source/heap/ThreadState.cpp
index e05fad7848c8feb09597fd828a047727555060f7..87d319e89b7616e442ea75c41892788dc40b395b 100644
--- a/Source/heap/ThreadState.cpp
+++ b/Source/heap/ThreadState.cpp
@@ -171,6 +171,8 @@ private:
};
+intptr_t* ThreadState::s_mainThreadStackBottom = 0;
+intptr_t* ThreadState::s_mainThreadStackTop = 0;
WTF::ThreadSpecific<ThreadState*>* ThreadState::s_threadSpecific = 0;
ThreadState ThreadState::s_mainThreadState;
SafePointBarrier* ThreadState::s_safePointBarrier = 0;
@@ -192,6 +194,8 @@ void ThreadState::init(intptr_t* startOfStack)
s_threadSpecific = new WTF::ThreadSpecific<ThreadState*>();
s_safePointBarrier = new SafePointBarrier();
s_mainThreadState.create(startOfStack);
+ s_mainThreadStackBottom = startOfStack;
+ s_mainThreadStackTop = reinterpret_cast<intptr_t*>(reinterpret_cast<Address>(startOfStack) - (1 << 16));
attachedThreads().add(&s_mainThreadState);
}
« no previous file with comments | « Source/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698