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

Unified Diff: Source/platform/heap/ThreadState.h

Issue 311263008: Make |Heap::findGCInfo()| threadsafe. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: change check to isAnyThreadInGC Created 6 years, 6 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
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index f0eea36a4881e4fa2076651b79fb403f1fed3cdd..bdd6c0f2fa0fbd1843a4be13ba38ab629ec1e6a4 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -504,6 +504,8 @@ public:
HeapStats& stats() { return m_stats; }
HeapStats& statsAfterLastGC() { return m_statsAfterLastGC; }
+ static Mutex& threadAttachMutex();
Mads Ager (chromium) 2014/06/06 06:54:01 Instead of exposing this, can you move the code th
kouhei (in TOK) 2014/06/06 06:58:26 Ack.
+
private:
explicit ThreadState();
~ThreadState();

Powered by Google App Engine
This is Rietveld 408576698