Closed Bug 1155258 Opened 10 years ago Closed 10 years ago

TempAllocPolicy::pod_realloc() throws away your data on OOM

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

Attached patch temp-realloc-fixSplinter Review
Similar to bug 1154692. If OOM occurs we retry the allocation -- but we don't copy the caller's data. This is a fix, but I'm thinking we should rewrite onOutOfMemory() to have a clearer interface.
Attachment #8593448 - Flags: review?(terrence)
Comment on attachment 8593448 [details] [diff] [review] temp-realloc-fix Review of attachment 8593448 [details] [diff] [review]: ----------------------------------------------------------------- I think there's already a bug open to rewrite all of this. Thanks for making the spot fixes in the meantime!
Attachment #8593448 - Flags: review?(terrence) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: