Bug 1449066 - Annotate more func<AllowGC::NoGC> as not being able to GC, r=jonco

--HG--
extra : rebase_source : 495beb5dd82729098e5e1a717f0711218c7b6a47
This commit is contained in:
Steve Fink 2018-03-28 20:59:03 -07:00
Родитель b1be1f1ac9
Коммит 935ce004cb
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -299,8 +299,10 @@ function ignoreGCFunction(mangled)
if (fun.includes("js::WeakMap<Key, Value, HashPolicy>::getDelegate(")) if (fun.includes("js::WeakMap<Key, Value, HashPolicy>::getDelegate("))
return true; return true;
// XXX modify refillFreeList<NoGC> to not need data flow analysis to understand it cannot GC. // TODO: modify refillFreeList<NoGC> to not need data flow analysis to
if (/refillFreeList/.test(fun) && /\(js::AllowGC\)0u/.test(fun)) // understand it cannot GC. As of gcc 6, the same problem occurs with
// tryNewTenuredThing, tryNewNurseryObject, and others.
if (/refillFreeList|tryNew/.test(fun) && /\(js::AllowGC\)0u/.test(fun))
return true; return true;
return false; return false;
} }