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

Unified Diff: Source/wtf/Partitions.h

Issue 1190883003: Set HistogramEnumerationFunction even when Partitions are initialized (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/Partitions.cpp » ('j') | Source/wtf/Partitions.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | Source/wtf/Partitions.cpp » ('j') | Source/wtf/Partitions.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698