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