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

Unified Diff: third_party/WebKit/Source/wtf/ThreadSpecific.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 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
Index: third_party/WebKit/Source/wtf/ThreadSpecific.h
diff --git a/third_party/WebKit/Source/wtf/ThreadSpecific.h b/third_party/WebKit/Source/wtf/ThreadSpecific.h
index e6218acffd56eb5d272a257b292c054cb2e9330c..82f2144132138057f3ca924f9c1d4a1ae370fb75 100644
--- a/third_party/WebKit/Source/wtf/ThreadSpecific.h
+++ b/third_party/WebKit/Source/wtf/ThreadSpecific.h
@@ -155,7 +155,7 @@ inline T* ThreadSpecific<T>::get() {
template <typename T>
inline void ThreadSpecific<T>::set(T* ptr) {
- ASSERT(!get());
+ DCHECK(!get());
pthread_setspecific(m_key, new Data(ptr, this));
}
@@ -212,7 +212,7 @@ inline T* ThreadSpecific<T>::get() {
template <typename T>
inline void ThreadSpecific<T>::set(T* ptr) {
- ASSERT(!get());
+ DCHECK(!get());
Data* data = new Data(ptr, this);
data->destructor = &ThreadSpecific<T>::destroy;
TlsSetValue(tlsKeys()[m_index], data);
« no previous file with comments | « third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h ('k') | third_party/WebKit/Source/wtf/ThreadingPrimitives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698