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

Unified Diff: third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp

Issue 2819123002: Replace ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/heap (Closed)
Patch Set: fix build error Created 3 years, 8 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/StackFrameDepth.cpp
diff --git a/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp b/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
index 9ad5deb9f44da6aaf8adee05a3e0c4ef6cbdc5c4..07e82f80745293f2be1df44a8bf335ff3a822ef3 100644
--- a/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
+++ b/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
@@ -48,9 +48,9 @@ void StackFrameDepth::EnableStackLimit() {
static const int kStackRoomSize = 1024;
Address stack_base = reinterpret_cast<Address>(WTF::GetStackStart());
- RELEASE_ASSERT(stack_size > static_cast<const size_t>(kStackRoomSize));
+ CHECK_GT(stack_size, static_cast<const size_t>(kStackRoomSize));
size_t stack_room = stack_size - kStackRoomSize;
- RELEASE_ASSERT(stack_base > reinterpret_cast<Address>(stack_room));
+ CHECK_GT(stack_base, reinterpret_cast<Address>(stack_room));
stack_frame_limit_ = reinterpret_cast<uintptr_t>(stack_base - stack_room);
// If current stack use is already exceeding estimated limit, mark as

Powered by Google App Engine
This is Rietveld 408576698