From 0a74c7644988060b3913c4df686c0a85892ee94e Mon Sep 17 00:00:00 2001 From: Olli Pettay Date: Fri, 24 Aug 2012 12:26:44 -0700 Subject: [PATCH] Bug 785463 - Tweak PurpleBuffer Block size, r=mccr8 --- xpcom/base/nsCycleCollector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpcom/base/nsCycleCollector.cpp b/xpcom/base/nsCycleCollector.cpp index 74afb06294b9..902774c5cf60 100644 --- a/xpcom/base/nsCycleCollector.cpp +++ b/xpcom/base/nsCycleCollector.cpp @@ -704,7 +704,8 @@ struct nsPurpleBuffer private: struct Block { Block *mNext; - nsPurpleBufferEntry mEntries[255]; + // Try to match the size of a jemalloc bucket. + nsPurpleBufferEntry mEntries[1360]; Block() : mNext(nullptr) {} };