Closed Bug 730270 Opened 8 years ago Closed 8 years ago

js_malloc fails once every 2^32 allocations in DEBUG builds

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

Attachments

(1 file)

See the definition of js_malloc and JS_OOM_POSSIBLY_FAIL in js/public/Utility.h.
Attached patch v1Splinter Review
Probably nobody ever runs a DEBUG build for the hours of continuous grind it would take to hit 2^32 allocations, but this bug is too gross to live.
Assignee: general → jorendorff
Attachment #600372 - Flags: review?(luke)
Comment on attachment 600372 [details] [diff] [review]
v1

lol
Attachment #600372 - Flags: review?(luke) → review+
https://hg.mozilla.org/mozilla-central/rev/b1fd65f6165d
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.