Bug 1931429 - Remove unused public nursery configuration helpers r=sfink

Differential Revision: https://phabricator.services.mozilla.com/D229058
This commit is contained in:
Matthew Gaudet 2024-11-15 18:15:57 +00:00
parent 4067ba76e8
commit a17b296e1b
2 changed files with 0 additions and 32 deletions

View File

@ -774,14 +774,6 @@ static MOZ_ALWAYS_INLINE bool GCThingIsMarkedGrayInCC(GCCellPtr thing) {
extern JS_PUBLIC_API JS::TraceKind GCThingTraceKind(void* thing);
extern JS_PUBLIC_API void EnableNurseryStrings(JSContext* cx);
extern JS_PUBLIC_API void DisableNurseryStrings(JSContext* cx);
extern JS_PUBLIC_API void EnableNurseryBigInts(JSContext* cx);
extern JS_PUBLIC_API void DisableNurseryBigInts(JSContext* cx);
/*
* Returns true when writes to GC thing pointers (and reads from weak pointers)
* must call an incremental barrier. This is generally only true when running

View File

@ -2543,27 +2543,3 @@ void js::Nursery::sweepMapAndSetObjects() {
}
void js::Nursery::joinDecommitTask() { decommitTask->join(); }
JS_PUBLIC_API void JS::EnableNurseryStrings(JSContext* cx) {
AutoEmptyNursery empty(cx);
ReleaseAllJITCode(cx->gcContext());
cx->runtime()->gc.nursery().enableStrings();
}
JS_PUBLIC_API void JS::DisableNurseryStrings(JSContext* cx) {
AutoEmptyNursery empty(cx);
ReleaseAllJITCode(cx->gcContext());
cx->runtime()->gc.nursery().disableStrings();
}
JS_PUBLIC_API void JS::EnableNurseryBigInts(JSContext* cx) {
AutoEmptyNursery empty(cx);
ReleaseAllJITCode(cx->gcContext());
cx->runtime()->gc.nursery().enableBigInts();
}
JS_PUBLIC_API void JS::DisableNurseryBigInts(JSContext* cx) {
AutoEmptyNursery empty(cx);
ReleaseAllJITCode(cx->gcContext());
cx->runtime()->gc.nursery().disableBigInts();
}