зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1141234 - Part 8: Suppress a false positive rooting analysis hazard; r=sfink
This commit is contained in:
Родитель
278c3b07fc
Коммит
fbd1e7e370
|
@ -188,6 +188,10 @@ JSObject *
|
|||
GCRuntime::tryNewTenuredObject(ExclusiveContext *cx, AllocKind kind, size_t thingSize,
|
||||
size_t nDynamicSlots)
|
||||
{
|
||||
// The analysis is not aware that the HeapSlots in |slots| here are
|
||||
// disconnected because they are uninitialized.
|
||||
AutoSuppressGCAnalysis suppress(cx);
|
||||
|
||||
UniqueSlots slots = MakeSlotArray(cx, nDynamicSlots);
|
||||
if (nDynamicSlots && !slots)
|
||||
return nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче