mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
Remove SetGCZeal() stub and its callers.
This commit is contained in:
parent
ed9ef4d079
commit
f8ab99eba0
6 changed files with 1 additions and 33 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ class NativeObject;
|
|||
class Nursery;
|
||||
class HeapSlot;
|
||||
|
||||
void SetGCZeal(JSRuntime*, uint8_t, uint32_t);
|
||||
|
||||
namespace gc {
|
||||
class AutoMaybeStartBackgroundAllocation;
|
||||
struct Cell;
|
||||
|
|
|
|||
|
|
@ -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) *
|
||||
******************************************************/
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ interface ScheduledGCCallback : nsISupports
|
|||
/**
|
||||
* interface of Components.utils
|
||||
*/
|
||||
[scriptable, uuid(86003fe3-ee9a-4620-91dc-eef8b1e58815)]
|
||||
[scriptable, uuid(a6e66965-4b9a-4846-8985-985e71aaf549)]
|
||||
interface nsIXPCComponents_Utils : nsISupports
|
||||
{
|
||||
|
||||
|
|
@ -529,9 +529,6 @@ interface nsIXPCComponents_Utils : nsISupports
|
|||
[implicit_jscontext]
|
||||
attribute boolean ion;
|
||||
|
||||
[implicit_jscontext]
|
||||
void setGCZeal(in long zeal);
|
||||
|
||||
[implicit_jscontext]
|
||||
void nukeSandbox(in jsval obj);
|
||||
|
||||
|
|
|
|||
|
|
@ -3004,12 +3004,6 @@ GENERATE_JSCONTEXTOPTION_GETTER_SETTER(Ion, ion, setIon)
|
|||
|
||||
#undef GENERATE_JSCONTEXTOPTION_GETTER_SETTER
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCComponents_Utils::SetGCZeal(int32_t aValue, JSContext* cx)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXPCComponents_Utils::NukeSandbox(HandleValue obj, JSContext* cx)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1479,10 +1479,6 @@ SpecialPowersAPI.prototype = {
|
|||
Cu.schedulePreciseGC(genGCCallback(callback));
|
||||
},
|
||||
|
||||
setGCZeal: function(zeal) {
|
||||
Cu.setGCZeal(zeal);
|
||||
},
|
||||
|
||||
isMainProcess: function() {
|
||||
try {
|
||||
return Cc["@mozilla.org/xre/app-info;1"].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue