mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1220703 - Remove AutoDisableStoreBuffer; r=jonco
--HG-- extra : rebase_source : d7c4f67d1debbb0758a967149697a8b644f29307
This commit is contained in:
parent
def83fe44a
commit
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++;
|
||||
|
Loading…
Reference in New Issue
Block a user