nsTArray comments say default allocator is fallible when it's not

NEW
Unassigned

Status

()

6 years ago
6 years ago

People

(Reporter: mikeh, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

http://mxr.mozilla.org/mozilla-central/source/xpcom/glue/nsTArray.h#405

405 // The Alloc template parameter can be used to choose between
406 // "fallible" and "infallible" nsTArray (if available), defaulting to
407 // fallible.

...earlier...

 99 #if defined(MOZALLOC_HAVE_XMALLOC)
100 struct nsTArrayDefaultAllocator : public nsTArrayInfallibleAllocator { };
101 #else
102 struct nsTArrayDefaultAllocator : public nsTArrayFallibleAllocator { };
103 #endif

Ref. https://bugzilla.mozilla.org/show_bug.cgi?id=610823
Component: mozglue → XPCOM
You need to log in before you can comment on or make changes to this bug.