| Index: third_party/WebKit/Source/wtf/PartitionAlloc.h
|
| diff --git a/third_party/WebKit/Source/wtf/PartitionAlloc.h b/third_party/WebKit/Source/wtf/PartitionAlloc.h
|
| index 9b9493e3058da0d35ea922a4f3a83f92aa33ea71..218484efdf84a4de4e565fd1cf1c8da525a967ef 100644
|
| --- a/third_party/WebKit/Source/wtf/PartitionAlloc.h
|
| +++ b/third_party/WebKit/Source/wtf/PartitionAlloc.h
|
| @@ -658,7 +658,7 @@ ALWAYS_INLINE void* partitionAlloc(PartitionRoot* root, size_t size, const char*
|
| {
|
| #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
|
| void* result = malloc(size);
|
| - CHECK(result);
|
| + RELEASE_ASSERT(result);
|
| return result;
|
| #else
|
| size_t requestedSize = size;
|
| @@ -734,7 +734,7 @@ ALWAYS_INLINE void* partitionAllocGenericFlags(PartitionRootGeneric* root, int f
|
| {
|
| #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
|
| void* result = malloc(size);
|
| - CHECK(result);
|
| + RELEASE_ASSERT(result);
|
| return result;
|
| #else
|
| ASSERT(root->initialized);
|
| @@ -747,9 +747,9 @@ ALWAYS_INLINE void* partitionAllocGenericFlags(PartitionRootGeneric* root, int f
|
| // TODO(bashi): Remove following RELEAE_ASSERT()s once we find the cause of
|
| // http://crbug.com/514141
|
| #if OS(ANDROID)
|
| - CHECK(bucket >= &root->buckets[0] || bucket == &PartitionRootGeneric::gPagedBucket);
|
| - CHECK(bucket <= &root->buckets[kGenericNumBuckets - 1] || bucket == &PartitionRootGeneric::gPagedBucket);
|
| - CHECK(root->initialized);
|
| + RELEASE_ASSERT(bucket >= &root->buckets[0] || bucket == &PartitionRootGeneric::gPagedBucket);
|
| + RELEASE_ASSERT(bucket <= &root->buckets[kGenericNumBuckets - 1] || bucket == &PartitionRootGeneric::gPagedBucket);
|
| + RELEASE_ASSERT(root->initialized);
|
| #endif
|
| ret = partitionBucketAlloc(root, flags, size, bucket);
|
| }
|
|
|