Remove SetGCZeal() stub and its callers.

This commit is contained in:
wolfbeast 2017-06-27 00:12:45 +02:00 committed by Roy Tam
commit f8ab99eba0
6 changed files with 1 additions and 33 deletions

View file

@ -1264,8 +1264,6 @@ OOMTest(JSContext* cx, unsigned argc, Value* vp)
MOZ_ASSERT(!cx->isExceptionPending());
rt->hadOutOfMemory = false;
JS_SetGCZeal(cx, 0, JS_DEFAULT_ZEAL_FREQ);
for (unsigned thread = threadStart; thread < threadEnd; thread++) {
if (verbose)
fprintf(stderr, "thread %d\n", thread);

View file

@ -58,8 +58,6 @@ class NativeObject;
class Nursery;
class HeapSlot;
void SetGCZeal(JSRuntime*, uint8_t, uint32_t);
namespace gc {
class AutoMaybeStartBackgroundAllocation;
struct Cell;

View file

@ -32,8 +32,6 @@
// Certain cached functionality only exists (and is only needed) when
// running in the browser. Segregate that caching here.
var SpecialPowersSetGCZeal =
global.SpecialPowers ? global.SpecialPowers.setGCZeal : undefined;
}
var runningInShell = typeof window === "undefined";
@ -205,19 +203,6 @@
global.quit = quit;
}
var gczeal = global.gczeal;
if (typeof gczeal !== "function") {
if (typeof SpecialPowersSetGCZeal === "function") {
gczeal = function gczeal(z) {
SpecialPowersSetGCZeal(z);
};
} else {
gczeal = function() {}; // no-op if not available
}
global.gczeal = gczeal;
}
/******************************************************
* TEST METADATA EXPORTS (these are of dubious value) *
******************************************************/