Closed Bug 1131901 Opened 11 years ago Closed 11 years ago

Add infallible version of PL_DHashTableAdd()

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

Attachments

(2 files)

The hash table entry storage lazification in bug 1050035 was backed out due to instability. But parts 4 and 5, which added an infallible version of PL_DHashTableAdd(), should be able to land safely now.
I kept all the existing PL_DHashTableAdd() calls fallible, in order to be conservative, except for the ones in nsAtomTable.cpp which already were followed immediately by an abort on failure.
Comment on attachment 8562539 [details] [diff] [review] (part 1) - Make PL_DHashTableAdd() infallible by default, and add a fallible alternative Review of attachment 8562539 [details] [diff] [review]: ----------------------------------------------------------------- Carrying over r+ from bug 1050035.
Attachment #8562539 - Flags: review+
Comment on attachment 8562542 [details] [diff] [review] (part 2) - Make CCGraphBuilder::AddNode() infallible Review of attachment 8562542 [details] [diff] [review]: ----------------------------------------------------------------- Carrying over r+ from bug 1050035.
Attachment #8562542 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Blocks: 1144649
No longer blocks: 1144649
Depends on: 1144649
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: