mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Remove upcomingZealousGC() and caller
This commit is contained in:
parent
c3cf90ca74
commit
3723589e52
2 changed files with 0 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue