Closed
Bug 1517684
Opened 6 years ago
Closed 6 years ago
Out of date comment for FinalizeArenas
Categories
(Core :: JavaScript: GC, enhancement, P3)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla66
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: pbone, Assigned: pbone)
References
Details
Attachments
(1 file)
|
757 bytes,
patch
|
jonco
:
review+
|
Details | Diff | Splinter Review |
https://searchfox.org/mozilla-central/source/js/src/gc/GC.cpp#672-678
The comment here refers to al's cursor. al no longer exists and the list of arenas here doesn't have a cursor. I'm not sure how to update this comment due to the missing cursor.
| Assignee | ||
Comment 1•6 years ago
|
||
NI jonco because I think he last edited this code.
Flags: needinfo?(jcoppeard)
Comment 2•6 years ago
|
||
The cursor it's referring to is src, a pointer to an Arena pointer. This got renamed a while back but the comment wasn't updated.
Flags: needinfo?(jcoppeard)
| Assignee | ||
Updated•6 years ago
|
Assignee: nobody → pbone
Status: NEW → ASSIGNED
Priority: -- → P3
| Assignee | ||
Comment 3•6 years ago
|
||
(In reply to Jon Coppeard (:jonco) from comment #2)
> The cursor it's referring to is src, a pointer to an Arena pointer. This
> got renamed a while back but the comment wasn't updated.
The comment says that on return the cursor points to the first non-empty arena. I don't see how that works, because the loop exits when *src is null (or if it's over budget). Maybe I should just remove that bit?
Comment 4•6 years ago
|
||
(In reply to Paul Bone [:pbone] from comment #3)
> The comment says that on return the cursor points to the first non-empty
> arena. I don't see how that works, because the loop exits when *src is null
> (or if it's over budget). Maybe I should just remove that bit?
Oh, I see. You're right, on return src points to null if we've finished or the next arena to process.
| Assignee | ||
Comment 5•6 years ago
|
||
Attachment #9034882 -
Flags: review?(jcoppeard)
Updated•6 years ago
|
Attachment #9034882 -
Flags: review?(jcoppeard) → review+
Pushed by pbone@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e9bc92a2ff28
Fix obsolete comment
Comment 7•6 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox66:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•