Closed Bug 1517684 Opened 6 years ago Closed 6 years ago

Out of date comment for FinalizeArenas

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: pbone, Assigned: pbone)

References

Details

Attachments

(1 file)

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.
NI jonco because I think he last edited this code.
Flags: needinfo?(jcoppeard)
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: nobody → pbone
Status: NEW → ASSIGNED
Priority: -- → P3
(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?
(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.
Attachment #9034882 - Flags: review?(jcoppeard)
Attachment #9034882 - Flags: review?(jcoppeard) → review+
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: