Changeset 77619 in webkit for trunk/Source/JavaScriptCore/runtime/Heap.cpp
- Timestamp:
- Feb 4, 2011, 5:03:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Heap.cpp
r77614 r77619 33 33 #include "JSONObject.h" 34 34 #include "Tracing.h" 35 #include <algorithm>36 35 37 36 #define COLLECT_ON_EVERY_ALLOCATION 0 38 37 39 using namespace std;40 41 38 namespace JSC { 42 39 43 const size_t minBytesPerCycle = 512 * 1024;44 45 40 Heap::Heap(JSGlobalData* globalData) 46 : m_ operationInProgress(NoOperation)47 , m_ markedSpace(globalData)41 : m_markedSpace(globalData) 42 , m_operationInProgress(NoOperation) 48 43 , m_markListSet(0) 49 44 , m_activityCallback(DefaultGCActivityCallback::create(this)) … … 387 382 m_markedSpace.sweep(); 388 383 389 size_t usedCellCount = m_markedSpace.markedCells();390 size_t proportionalBytes = static_cast<size_t>(usedCellCount * 1.5 * HeapConstants::cellSize);391 m_markedSpace.setHighWaterMark(max(proportionalBytes, minBytesPerCycle));392 393 384 JAVASCRIPTCORE_GC_END(); 394 385
Note:
See TracChangeset
for help on using the changeset viewer.