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

Unified Diff: third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h

Issue 2044673003: Honour PartitionAllocReturnNull flag when MEMORY_TOOL_REPLACES_ALLOCATOR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change CHECK back to RELEASE_ASSERT due to the reported "12.5%-56.9% perf regression" Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698