Changeset 9992 in webkit for trunk/JavaScriptCore/kjs/collector.cpp
- Timestamp:
- Jul 31, 2005, 10:02:13 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/collector.cpp
r9768 r9992 27 27 #include "value.h" 28 28 29 #include <algorithm> 30 29 31 #if APPLE_CHANGES 30 32 #include <CoreFoundation/CoreFoundation.h> … … 34 36 #include <mach/thread_act.h> 35 37 #endif 38 39 using std::max; 36 40 37 41 namespace KJS { … … 102 106 // oversize allocator 103 107 if (heap.usedOversizeCells == heap.numOversizeCells) { 104 heap.numOversizeCells = MAX(MIN_ARRAY_SIZE, heap.numOversizeCells * GROWTH_FACTOR);108 heap.numOversizeCells = max(MIN_ARRAY_SIZE, heap.numOversizeCells * GROWTH_FACTOR); 105 109 heap.oversizeCells = (CollectorCell **)kjs_fast_realloc(heap.oversizeCells, heap.numOversizeCells * sizeof(CollectorCell *)); 106 110 } … … 132 136 133 137 if (heap.usedBlocks == heap.numBlocks) { 134 heap.numBlocks = MAX(MIN_ARRAY_SIZE, heap.numBlocks * GROWTH_FACTOR);138 heap.numBlocks = max(MIN_ARRAY_SIZE, heap.numBlocks * GROWTH_FACTOR); 135 139 heap.blocks = (CollectorBlock **)kjs_fast_realloc(heap.blocks, heap.numBlocks * sizeof(CollectorBlock *)); 136 140 }
Note:
See TracChangeset
for help on using the changeset viewer.