summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2017-06-26 23:13:01 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-02-03 17:42:45 +0100
commit95badd197469e377bbed2319b8c5ee1e9581fa12 (patch)
tree767e6dbc407e311e573eb024c3f72db4964754fa
parent7a59ec756adc8fc4d394b221abcba5757c030f6d (diff)
downloaduxp-95badd197469e377bbed2319b8c5ee1e9581fa12.tar.gz
Remove upcomingZealousGC() and caller
-rw-r--r--js/src/gc/GCRuntime.h2
-rw-r--r--js/src/vm/Caches-inl.h3
2 files changed, 0 insertions, 5 deletions
diff --git a/js/src/gc/GCRuntime.h b/js/src/gc/GCRuntime.h
index 2cad0b3b3d..cc558c2db9 100644
--- a/js/src/gc/GCRuntime.h
+++ b/js/src/gc/GCRuntime.h
@@ -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 */
diff --git a/js/src/vm/Caches-inl.h b/js/src/vm/Caches-inl.h
index 4eb8ecaa63..56e69a0d99 100644
--- a/js/src/vm/Caches-inl.h
+++ b/js/src/vm/Caches-inl.h
@@ -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)