Ignore:
Timestamp:
Feb 4, 2011, 5:03:21 AM (14 years ago)
Author:
[email protected]
Message:

2011-02-04 Ilya Tikhonovsky <[email protected]>

Unreviewed rollout two patches r77614 and r77612.

REGRESSION: Snow Leopard Intell Release anumber of failing tests.

  • runtime/Heap.cpp: (JSC::Heap::Heap): (JSC::Heap::reset):
  • runtime/Heap.h:
  • runtime/MarkedSpace.cpp: (JSC::MarkedSpace::allocate): (JSC::MarkedSpace::sweep): (JSC::MarkedSpace::reset):
  • runtime/MarkedSpace.h:
File:
1 edited

Legend:

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

    r77614 r77619  
    3333#include "JSONObject.h"
    3434#include "Tracing.h"
    35 #include <algorithm>
    3635
    3736#define COLLECT_ON_EVERY_ALLOCATION 0
    3837
    39 using namespace std;
    40 
    4138namespace JSC {
    4239
    43 const size_t minBytesPerCycle = 512 * 1024;
    44 
    4540Heap::Heap(JSGlobalData* globalData)
    46     : m_operationInProgress(NoOperation)
    47     , m_markedSpace(globalData)
     41    : m_markedSpace(globalData)
     42    , m_operationInProgress(NoOperation)
    4843    , m_markListSet(0)
    4944    , m_activityCallback(DefaultGCActivityCallback::create(this))
     
    387382        m_markedSpace.sweep();
    388383
    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 
    393384    JAVASCRIPTCORE_GC_END();
    394385
Note: See TracChangeset for help on using the changeset viewer.