Index: Source/wtf/Partitions.h |
diff --git a/Source/wtf/Partitions.h b/Source/wtf/Partitions.h |
index 858a693e010766d578a06a8cb93c8e87e5624cba..e6a40c813f52780d33628e810ebadc0267a8e47d 100644 |
--- a/Source/wtf/Partitions.h |
+++ b/Source/wtf/Partitions.h |
@@ -39,7 +39,11 @@ namespace WTF { |
class WTF_EXPORT Partitions { |
public: |
- static void initialize(HistogramEnumerationFunction = nullptr); |
+ static void initialize(); |
+ // TODO(bashi): Remove this function and make initialize() take |
+ // HistogramEnumerationFunction when we can make sure that WTF::initialize() |
+ // is called before using this class. |
+ static void setHistogramEnumeration(HistogramEnumerationFunction); |
static void shutdown(); |
ALWAYS_INLINE static PartitionRootGeneric* bufferPartition() |
{ |
@@ -96,6 +100,7 @@ public: |
private: |
static bool s_initialized; |
+ static int s_lock; // Used for spin lock. |
static PartitionAllocatorGeneric m_fastMallocAllocator; |
static PartitionAllocatorGeneric m_bufferAllocator; |
static SizeSpecificPartitionAllocator<3328> m_objectModelAllocator; |