Ignore:
Timestamp:
Dec 7, 2011, 11:52:01 AM (13 years ago)
Author:
[email protected]
Message:

Non-Mac devices should benefit from a larger heap
https://bugs.webkit.org/show_bug.cgi?id=74015

Reviewed by Geoff Garen.

Removed the ENABLE(LARGE_HEAP) option from Platform.h, since it was only used in
Heap.cpp, and got in the way of having more granular, per-platform control over
what the heap size should be. Bumped the heap size to 8MB on iOS (was 512KB).

  • heap/Heap.cpp:

(JSC::GCTimer::heapSizeForHint):

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r100556 r102261  
    4343namespace {
    4444
     45#if CPU(X86) || CPU(X86_64)
    4546static const size_t largeHeapSize = 16 * 1024 * 1024;
     47#elif PLATFORM(IOS)
     48static const size_t largeHeapSize = 8 * 1024 * 1024;
     49#else
     50static const size_t largeHeapSize = 512 * 1024;
     51#endif
    4652static const size_t smallHeapSize = 512 * 1024;
    4753
     
    142148static size_t heapSizeForHint(HeapSize heapSize)
    143149{
    144 #if ENABLE(LARGE_HEAP)
    145150    if (heapSize == LargeHeap)
    146151        return largeHeapSize;
    147152    ASSERT(heapSize == SmallHeap);
    148153    return smallHeapSize;
    149 #else
    150     ASSERT_UNUSED(heapSize, heapSize == LargeHeap || heapSize == SmallHeap);
    151     return smallHeapSize;
    152 #endif
    153154}
    154155
Note: See TracChangeset for help on using the changeset viewer.