| Index: third_party/WebKit/Source/wtf/PartitionAlloc.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/PartitionAlloc.cpp b/third_party/WebKit/Source/wtf/PartitionAlloc.cpp
|
| index cbcc03a07812463582ff17c1bc368bfe27f256e1..a26147abaf035551a78af3064065c91b2714d889 100644
|
| --- a/third_party/WebKit/Source/wtf/PartitionAlloc.cpp
|
| +++ b/third_party/WebKit/Source/wtf/PartitionAlloc.cpp
|
| @@ -80,7 +80,7 @@ static uint8_t partitionBucketNumSystemPages(size_t size)
|
| if (size > kMaxSystemPagesPerSlotSpan * kSystemPageSize) {
|
| ASSERT(!(size % kSystemPageSize));
|
| bestPages = static_cast<uint16_t>(size / kSystemPageSize);
|
| - CHECK_LT(bestPages, (1 << 8));
|
| + RELEASE_ASSERT(bestPages < (1 << 8));
|
| return static_cast<uint8_t>(bestPages);
|
| }
|
| ASSERT(size <= kMaxSystemPagesPerSlotSpan * kSystemPageSize);
|
| @@ -100,7 +100,7 @@ static uint8_t partitionBucketNumSystemPages(size_t size)
|
| }
|
| }
|
| ASSERT(bestPages > 0);
|
| - CHECK_LE(bestPages, kMaxSystemPagesPerSlotSpan);
|
| + RELEASE_ASSERT(bestPages <= kMaxSystemPagesPerSlotSpan);
|
| return static_cast<uint8_t>(bestPages);
|
| }
|
|
|
| @@ -1009,7 +1009,7 @@ bool partitionReallocDirectMappedInPlace(PartitionRootGeneric* root, PartitionPa
|
| // pages accessible again.
|
| size_t recommitSize = newSize - currentSize;
|
| bool ret = setSystemPagesAccessible(charPtr + currentSize, recommitSize);
|
| - CHECK(ret);
|
| + RELEASE_ASSERT(ret);
|
| partitionRecommitSystemPages(root, charPtr + currentSize, recommitSize);
|
|
|
| #if ENABLE(ASSERT)
|
|
|