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 472d682d2791b2f3907cbe7a0cfcaae24d2650e7..74b18815c54277572b7e311797ef0f3361da7156 100644 |
--- a/third_party/WebKit/Source/wtf/PartitionAlloc.h |
+++ b/third_party/WebKit/Source/wtf/PartitionAlloc.h |
@@ -743,6 +743,12 @@ ALWAYS_INLINE void* partitionAllocGenericFlags(PartitionRootGeneric* root, int f |
size_t requestedSize = size; |
size = partitionCookieSizeAdjustAdd(size); |
PartitionBucket* bucket = partitionGenericSizeToBucket(root, size); |
+ // 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); |
bashi
2015/11/06 10:01:25
bucket can be &PartitionRootGeneric::gPageBucket
|
+ RELEASE_ASSERT(bucket <= &root->buckets[kGenericNumBuckets - 1] || bucket == &PartitionRootGeneric::gPagedBucket); |
+#endif |
spinLockLock(&root->lock); |
void* ret = partitionBucketAlloc(root, flags, size, bucket); |
spinLockUnlock(&root->lock); |