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

Unified Diff: Source/platform/WebThreadSupportingGC.cpp

Issue 874203002: Add a thread-safety assertion in DEFINE_STATIC_LOCAL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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
Index: Source/platform/WebThreadSupportingGC.cpp
diff --git a/Source/platform/WebThreadSupportingGC.cpp b/Source/platform/WebThreadSupportingGC.cpp
index df76335a69473b83aed6c4e6dd002bd3b9652250..b08ed0e27448628b6844e04dcc8f5578f52a8c16 100644
--- a/Source/platform/WebThreadSupportingGC.cpp
+++ b/Source/platform/WebThreadSupportingGC.cpp
@@ -5,10 +5,15 @@
#include "config.h"
#include "platform/WebThreadSupportingGC.h"
+#include "wtf/Threading.h"
+
namespace blink {
PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name)
{
+#if ENABLE(ASSERT)
+ WTF::willCreateThread();
+#endif
return adoptPtr(new WebThreadSupportingGC(name));
}

Powered by Google App Engine
This is Rietveld 408576698