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

Unified Diff: third_party/WebKit/Source/platform/heap/SafePoint.h

Issue 2619493003: Replace ASSERTs in platform/heap/ with DCHECKs
Patch Set: temp Created 3 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: third_party/WebKit/Source/platform/heap/SafePoint.h
diff --git a/third_party/WebKit/Source/platform/heap/SafePoint.h b/third_party/WebKit/Source/platform/heap/SafePoint.h
index 727b8cfca5cceef52e7da84e496784eb18f68831..10761e7845961d5129e3f2a49c367f7c058dac77 100644
--- a/third_party/WebKit/Source/platform/heap/SafePoint.h
+++ b/third_party/WebKit/Source/platform/heap/SafePoint.h
@@ -19,7 +19,7 @@ class SafePointScope final {
ThreadState* state = ThreadState::current())
: m_state(state) {
if (m_state) {
- RELEASE_ASSERT(!m_state->isAtSafePoint());
+ CHECK(!m_state->isAtSafePoint());
m_state->enterSafePoint(stackState, this);
}
}
@@ -71,7 +71,7 @@ class SafePointAwareMutexLocker final {
}
~SafePointAwareMutexLocker() {
- ASSERT(m_locked);
+ DCHECK(m_locked);
m_mutex.unlock();
}
@@ -79,7 +79,7 @@ class SafePointAwareMutexLocker final {
friend class SafePointBarrier;
void reset() {
- ASSERT(m_locked);
+ DCHECK(m_locked);
m_mutex.unlock();
m_locked = false;
}

Powered by Google App Engine
This is Rietveld 408576698