| Index: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
|
| diff --git a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
|
| index f84e9f3bf26f7b5ad44ca2a03924b5f08db6c14d..19390943206a62ca41f81d46303e39ccdea8962e 100644
|
| --- a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
|
| +++ b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
|
| @@ -734,7 +734,7 @@ ALWAYS_INLINE void* partitionAllocGenericFlags(PartitionRootGeneric* root, int f
|
| {
|
| #if defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
|
| void* result = malloc(size);
|
| - RELEASE_ASSERT(result);
|
| + RELEASE_ASSERT(result || flags & PartitionAllocReturnNull);
|
| return result;
|
| #else
|
| ASSERT(root->initialized);
|
|
|