Closed
Bug 636561
Opened 13 years ago
Closed 8 months ago
Reduce UnwantedForeground deallocations to zero.
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INCOMPLETE
mozilla2.0b12
People
(Reporter: paul.biggar, Unassigned)
References
Details
After bug 634155, there are 67 Foreground deallocation sites in SpiderMonkey. We should reduce these to as close to zero as possible.
Comment 1•13 years ago
|
||
Are those sites in performance critical paths?
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to comment #1) > Are those sites in performance critical paths? I'm not sure. In general, this happen in sections of code that don't have a context passed to them (in general the same ones with OfftheBooks allocations), for example arenas.
Comment 3•13 years ago
|
||
If its in a slow path immediate deallocation seems desirable. I would suggest we work on this from a profile perspective. Fix anything that is causing us to be slow.
Reporter | ||
Comment 4•13 years ago
|
||
(In reply to comment #3) > If its in a slow path immediate deallocation seems desirable. Do you mean that we _prefer_ Foreground deallocation on the slow path, or that there's no need to change code to allow Foreground deallocation on the slow path?
Comment 5•13 years ago
|
||
Shipping a pointer to the deallocation thread is not free, and we have (AFAICT) not resolved the thread contention issues with some mallocs that may make the whole thing bite back, not in latency to "free" but in throughput. So yeah, there are reasons to prefer foreground free. We shouldn't do much of any performance tuning without profile data. /be
Reporter | ||
Comment 6•13 years ago
|
||
I've changed the title to reflect the discussion so far. Basically, UnwantedForeground allocations are allocations that have not yet been audited. If ew determine that they belong in the Foreground, we can leave them there by renaming them to Foreground::allocfunc(). Otherwise, we can move them to the background by finding a context to run the allocation through.
Summary: Reduce Foreground deallocations to nearly zero. → Reduce UnwantedForeground deallocations to zero.
Target Milestone: --- → mozilla2.0b12
Reporter | ||
Comment 7•13 years ago
|
||
(In reply to comment #6) s/allocations/deallocations/g above
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•8 months ago
|
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•