mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 868037 - GC: Fix more rooting analysis false positives r=sfink DONTBUILD
This commit is contained in:
parent
625b96e463
commit
322dbbb1db
@ -28,6 +28,13 @@ function indirectCallCannotGC(caller, name)
|
||||
if (/CallDestroyScriptHook/.test(caller))
|
||||
return true;
|
||||
|
||||
// template method called during marking and hence cannot GC
|
||||
if (name == "op" &&
|
||||
/^bool js::WeakMap<Key, Value, HashPolicy>::keyNeedsMark\(JSObject\*\)/.test(caller))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ function processCSU(csu, body)
|
||||
if (type.Kind == "CSU") {
|
||||
// Ignore nesting in classes which are AutoGCRooters. We only consider
|
||||
// types with fields that may not be properly rooted.
|
||||
if (type.Name == "JS::AutoGCRooter")
|
||||
if (type.Name == "JS::AutoGCRooter" || type.Name == "JS::CustomAutoRooter")
|
||||
return;
|
||||
addNestedStructure(csu, type.Name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user