Bug 1220703 - Remove AutoDisableStoreBuffer; r=jonco

--HG--
extra : rebase_source : d7c4f67d1debbb0758a967149697a8b644f29307
This commit is contained in:
Terrence Cole 2015-11-04 07:07:01 -08:00
Родитель def83fe44a
Коммит 44e23f3ceb
1 изменённых файлов: 0 добавлений и 23 удалений

Просмотреть файл

@ -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++;