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

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

Issue 2444913002: Revert of Add RELEASE_ASSERT() for |bucket| in partitionAllocGenericFlags() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 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 544ec59e5dc88e3df4d1825f55216a849302928b..67f93aa379065c55d3c21ac86752c4f7aa17d582 100644
--- a/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
+++ b/third_party/WebKit/Source/wtf/allocator/PartitionAlloc.h
@@ -829,15 +829,6 @@ ALWAYS_INLINE void* partitionAllocGenericFlags(PartitionRootGeneric* root,
void* ret = nullptr;
{
SpinLock::Guard guard(root->lock);
-// TODO(bashi): Remove following RELEAE_ASSERT()s once we find the cause of
-// http://crbug.com/514141
-#if OS(ANDROID)
- 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);
}
PartitionAllocHooks::allocationHookIfEnabled(ret, requestedSize, typeName);
« 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