Index: Source/wtf/PartitionAlloc.h |
diff --git a/Source/wtf/PartitionAlloc.h b/Source/wtf/PartitionAlloc.h |
index 1db9ab68245ce91cc9bd38dcd2886a8fc35b3603..d0c22ac9e3995a57704b00c46970a4cca9de7375 100644 |
--- a/Source/wtf/PartitionAlloc.h |
+++ b/Source/wtf/PartitionAlloc.h |
@@ -726,7 +726,7 @@ ALWAYS_INLINE void partitionFreeGeneric(PartitionRootGeneric* root, void* ptr) |
#endif |
} |
-ALWAYS_INLINE size_t partitionDirectMapSize(size_t size) |
Primiano Tucci (use gerrit)
2015/09/03 11:24:53
I think this should stay as it is (as the assert i
Ruud van Asseldonk
2015/09/03 13:44:47
Done.
|
+ALWAYS_INLINE size_t partitionRoundUpToSystemPage(size_t size) |
{ |
// Caller must check that the size is not above the kGenericMaxDirectMapped |
// limit before calling. This also guards against integer overflow in the |
@@ -749,7 +749,7 @@ ALWAYS_INLINE size_t partitionAllocActualSize(PartitionRootGeneric* root, size_t |
// Too large to allocate => return the size unchanged. |
} else { |
ASSERT(bucket == &PartitionRootBase::gPagedBucket); |
- size = partitionDirectMapSize(size); |
Primiano Tucci (use gerrit)
2015/09/03 11:24:53
ditto
|
+ size = partitionRoundUpToSystemPage(size); |
} |
return partitionCookieSizeAdjustSubtract(size); |
#endif |