mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 847248 (part 2) - Use a smaller chunk size in TimerEventAllocator. r=bz.
This commit is contained in:
parent
5696709a30
commit
3bd97a9304
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user