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/wtf/allocator/PartitionAllocator.h

Issue 1992873004: Replace all occurrences of RELEASE_ASSERT in wtf with CHECK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Specialized dchecks in utils.h. Created 4 years, 7 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/wtf/allocator/PartitionAllocator.h
diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h b/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
index e10e16faa5b98a4ab6ebf537c265cfcc0bc81149..5e3567942eb32df5d8ff38c3a99c115bae415749 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAllocator.h
@@ -56,7 +56,7 @@ public:
template<typename T>
static size_t quantizedSize(size_t count)
{
- RELEASE_ASSERT(count <= kGenericMaxDirectMapped / sizeof(T));
+ CHECK_LE(count, kGenericMaxDirectMapped / sizeof(T));
return partitionAllocActualSize(Partitions::bufferPartition(), count * sizeof(T));
}
template <typename T>

Powered by Google App Engine
This is Rietveld 408576698