| Index: Source/wtf/Partitions.cpp
|
| diff --git a/Source/wtf/Partitions.cpp b/Source/wtf/Partitions.cpp
|
| index 8d131d408d1f0a15f5535aeab7273be58f198340..800632ea4a009c43f26dd95ac4e1a18aab0a100b 100644
|
| --- a/Source/wtf/Partitions.cpp
|
| +++ b/Source/wtf/Partitions.cpp
|
| @@ -38,6 +38,7 @@ namespace WTF {
|
|
|
| bool Partitions::s_initialized;
|
|
|
| +PartitionAllocatorGeneric Partitions::m_fastMallocAllocator;
|
| PartitionAllocatorGeneric Partitions::m_bufferAllocator;
|
| SizeSpecificPartitionAllocator<3328> Partitions::m_objectModelAllocator;
|
| SizeSpecificPartitionAllocator<1024> Partitions::m_renderingAllocator;
|
| @@ -48,6 +49,7 @@ void Partitions::initialize()
|
| // Guard against two threads hitting here in parallel.
|
| spinLockLock(&lock);
|
| if (!s_initialized) {
|
| + m_fastMallocAllocator.init();
|
| m_bufferAllocator.init();
|
| m_objectModelAllocator.init();
|
| m_renderingAllocator.init();
|
| @@ -58,14 +60,13 @@ void Partitions::initialize()
|
|
|
| void Partitions::shutdown()
|
| {
|
| - fastMallocShutdown();
|
| -
|
| // We could ASSERT here for a memory leak within the partition, but it leads
|
| // to very hard to diagnose ASSERTs, so it's best to leave leak checking for
|
| // the valgrind and heapcheck bots, which run without partitions.
|
| (void) m_renderingAllocator.shutdown();
|
| (void) m_objectModelAllocator.shutdown();
|
| (void) m_bufferAllocator.shutdown();
|
| + (void) m_fastMallocAllocator.shutdown();
|
| }
|
|
|
| } // namespace WTF
|
|
|