Bug 847248 (part 2) - Use a smaller chunk size in TimerEventAllocator. r=bz.

This commit is contained in:
Nicholas Nethercote 2013-03-03 18:50:06 -08:00
parent 5696709a30
commit 3bd97a9304

View File

@ -551,7 +551,7 @@ void nsTimerEvent::Init()
sAllocator = new TimerEventAllocator();
static const size_t kBucketSizes[] = {sizeof(nsTimerEvent)};
static const int32_t kNumBuckets = mozilla::ArrayLength(kBucketSizes);
static const int32_t kInitialPoolSize = 1024 * sizeof(nsTimerEvent);
static const int32_t kInitialPoolSize = 4096;
sAllocator->Init("TimerEventPool", kBucketSizes, kNumBuckets, kInitialPoolSize);
}