Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Mon, 14 Nov 2011 18:10:06 +0200
changeset 80215 eb84780783ed7204a54af564e3f226304ba44506
parent 80214 24c8d04f61748bdc73e1aeb9bfbac37967df3307
child 80239 f694183357ec7d7a9c5406dc651e9805c77f33da
push id323
push userrcampbell@mozilla.com
push dateTue, 15 Nov 2011 21:58:36 +0000
treeherderfx-team@3ea216303184 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmccr8
bugs702240
milestone11.0a1
Bug 702240 - [CC] Optimize sizeof nsPurpleBuffer::Block, r=mccr8
xpcom/base/nsCycleCollector.cpp
--- a/xpcom/base/nsCycleCollector.cpp
+++ b/xpcom/base/nsCycleCollector.cpp
@@ -743,17 +743,17 @@ typedef nsTHashtable<nsVoidPtrHashKey> P
 static inline void
 ToParticipant(nsISupports *s, nsXPCOMCycleCollectionParticipant **cp);
 
 struct nsPurpleBuffer
 {
 private:
     struct Block {
         Block *mNext;
-        nsPurpleBufferEntry mEntries[128];
+        nsPurpleBufferEntry mEntries[255];
 
         Block() : mNext(nsnull) {}
     };
 public:
     // This class wraps a linked list of the elements in the purple
     // buffer.
 
     nsCycleCollectorParams &mParams;