Remove upcomingZealousGC() and caller

This commit is contained in:
wolfbeast 2017-06-26 23:13:01 +02:00 committed by Roy Tam
commit 3723589e52
2 changed files with 0 additions and 5 deletions

View file

@ -600,7 +600,6 @@ class GCRuntime
void finishRoots();
void finish();
inline bool upcomingZealousGC();
inline bool needZealousGC();
MOZ_MUST_USE bool addRoot(Value* vp, const char* name);
@ -1353,7 +1352,6 @@ class MOZ_RAII AutoMaybeStartBackgroundAllocation
}
};
inline bool GCRuntime::upcomingZealousGC() { return false; }
inline bool GCRuntime::needZealousGC() { return false; }
} /* namespace gc */

View file

@ -57,9 +57,6 @@ NewObjectCache::newObjectFromHit(JSContext* cx, EntryIndex entryIndex, gc::Initi
if (group->shouldPreTenure())
heap = gc::TenuredHeap;
if (cx->runtime()->gc.upcomingZealousGC())
return nullptr;
NativeObject* obj = static_cast<NativeObject*>(Allocate<JSObject, NoGC>(cx, entry->kind, 0,
heap, group->clasp()));
if (!obj)