Open Bug 808143 Opened 13 years ago Updated 3 years ago

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

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

People

(Reporter: mikeh, Unassigned)

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
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.