ported from UXP: Issue #2083 - Part 1: Make RegExpShared a GC thing. (3796c7c1)

This commit is contained in:
2023-02-01 08:09:09 +08:00
parent 4849130a24
commit f05e7f9cc5
29 changed files with 386 additions and 414 deletions
+4 -1
View File
@@ -548,7 +548,10 @@ void TraceScriptHolder(nsISupports* aHolder, JSTracer* aTracer);
// Returns true if the JS::TraceKind is one the cycle collector cares about.
inline bool AddToCCKind(JS::TraceKind aKind)
{
return aKind == JS::TraceKind::Object || aKind == JS::TraceKind::Script || aKind == JS::TraceKind::Scope;
return aKind == JS::TraceKind::Object ||
aKind == JS::TraceKind::Script ||
aKind == JS::TraceKind::Scope ||
aKind == JS::TraceKind::RegExpShared;
}
bool