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

Unified Diff: Source/wtf/PartitionAlloc.h

Issue 183113003: PartitionAlloc: support in-place resize of directly mapped allocation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix various issues Created 6 years, 10 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 | Source/wtf/PartitionAlloc.cpp » ('j') | Source/wtf/PartitionAlloc.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/PartitionAlloc.h
diff --git a/Source/wtf/PartitionAlloc.h b/Source/wtf/PartitionAlloc.h
index 78e039f04cf5a5a97ef2bc1884a8d2d4aa3e7b5b..7dfc37a59b554767ac24da81e8bb5be09afa7053 100644
--- a/Source/wtf/PartitionAlloc.h
+++ b/Source/wtf/PartitionAlloc.h
@@ -571,6 +571,12 @@ ALWAYS_INLINE bool partitionBucketIsDirectMapped(PartitionBucket* bucket)
return !bucket->numSystemPagesPerSlotSpan;
}
+ALWAYS_INLINE bool partitionSizeIsDirectMapped(size_t size)
Chris Evans 2014/03/05 07:57:04 I think we can make this private by moving to the
+{
+ size = partitionCookieSizeAdjustAdd(size);
+ return size > kGenericMaxBucketed && size <= kGenericMaxDirectMapped;
Chris Evans 2014/03/05 07:57:04 I think the second condition is a bit subtle here.
+}
+
ALWAYS_INLINE size_t partitionDirectMapSize(size_t size)
{
// Caller must check that the size is not above the kGenericMaxDirectMapped
« no previous file with comments | « no previous file | Source/wtf/PartitionAlloc.cpp » ('j') | Source/wtf/PartitionAlloc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698