зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1220703 - Remove AutoDisableStoreBuffer; r=jonco
--HG-- extra : rebase_source : d7c4f67d1debbb0758a967149697a8b644f29307
This commit is contained in:
Родитель
def83fe44a
Коммит
44e23f3ceb
|
@ -6170,22 +6170,6 @@ GCRuntime::budgetIncrementalGC(SliceBudget& budget)
|
|||
|
||||
namespace {
|
||||
|
||||
class AutoDisableStoreBuffer
|
||||
{
|
||||
StoreBuffer& sb;
|
||||
bool prior;
|
||||
|
||||
public:
|
||||
explicit AutoDisableStoreBuffer(GCRuntime* gc) : sb(gc->storeBuffer) {
|
||||
prior = sb.isEnabled();
|
||||
sb.disable();
|
||||
}
|
||||
~AutoDisableStoreBuffer() {
|
||||
if (prior)
|
||||
sb.enable();
|
||||
}
|
||||
};
|
||||
|
||||
class AutoScheduleZonesForGC
|
||||
{
|
||||
JSRuntime* rt_;
|
||||
|
@ -6237,12 +6221,6 @@ GCRuntime::gcCycle(bool nonincrementalByAPI, SliceBudget& budget, JS::gcreason::
|
|||
|
||||
evictNursery(reason);
|
||||
|
||||
/*
|
||||
* Marking can trigger many incidental post barriers, some of them for
|
||||
* objects which are not going to be live after the GC.
|
||||
*/
|
||||
AutoDisableStoreBuffer adsb(this);
|
||||
|
||||
AutoTraceSession session(rt, JS::HeapState::MajorCollecting);
|
||||
|
||||
majorGCTriggerReason = JS::gcreason::NO_REASON;
|
||||
|
@ -6511,7 +6489,6 @@ GCRuntime::abortGC()
|
|||
SliceBudget::unlimited(), JS::gcreason::ABORT_GC);
|
||||
|
||||
evictNursery(JS::gcreason::ABORT_GC);
|
||||
AutoDisableStoreBuffer adsb(this);
|
||||
AutoTraceSession session(rt, JS::HeapState::MajorCollecting);
|
||||
|
||||
number++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче