Closed
Bug 702480
Opened 14 years ago
Closed 14 years ago
Fix description of js-gc-heap-unused-fraction
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: terrence, Assigned: terrence)
Details
Attachments
(1 file)
1.74 KB,
patch
|
n.nethercote
:
review+
|
Details | Diff | Splinter Review |
This did not get updated correctly in bug 670596.
Attachment #574476 -
Flags: review?(nnethercote)
![]() |
||
Comment 1•14 years ago
|
||
Comment on attachment 574476 [details] [diff] [review]
v1: trivial
Review of attachment 574476 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/xpconnect/src/XPCJSRuntime.cpp
@@ +2023,5 @@
> data.gcHeapUnusedPercentage,
> "Fraction of the garbage-collected JavaScript heap that is unused. "
> "Computed as ('js-gc-heap-chunk-clean-unused' + "
> + "'js-gc-heap-chunk-dirty-unused' + 'js-gc-heap-decommitted' + "
> + "'js-gc-heap-arena-unused') / 'js-gc-heap'.",
I would have made 'js-gc-heap-decommitted' the 3rd operand in the sum to keep the two 'unused' reports together, but it's not a big deal.
Attachment #574476 -
Flags: review?(nnethercote) → review+
![]() |
||
Comment 2•14 years ago
|
||
Could we also remove the useless inner loop "while (chunk)" loop in DecommitFreePages? The outer loop over all chunks is enough to get all the chunks.
Assignee | ||
Comment 3•14 years ago
|
||
![]() |
||
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in
before you can comment on or make changes to this bug.
Description
•