Closed Bug 835966 Opened 7 years ago Closed 7 years ago
We have a couple copies of all the malloc-related functions now, and they all do basically the same thing. The only differences are how they update the malloc counter and how they handle OOM. So I added a new MallocProvider class that JSRuntime, JSContext, and Allocator can implement. They're allowed to specialize how they handle the malloc counter and OOM.
Attachment #707764 - Flags: review?(luke)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.