Closed Bug 1273647 Opened 9 years ago Closed 9 years ago

Elucidate reference counting of SharedImmutableStringsCache

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: fitzgen, Assigned: fitzgen)

References

Details

Attachments

(1 file, 2 obsolete files)

No description provided.
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Depends on: 1269451
s/enlucidate/elucidate/ Too much emplacing...
Attachment #8753527 - Flags: review?(jimb)
Attachment #8753525 - Attachment is obsolete: true
Attachment #8753525 - Flags: review?(jimb)
Summary: Enlucidate reference counting of SharedImmutableStringsCache → Elucidate reference counting of SharedImmutableStringsCache
Forgot to remove one set of now-replaced refcount++s.
Attachment #8753529 - Flags: review?(jimb)
Attachment #8753527 - Attachment is obsolete: true
Attachment #8753527 - Flags: review?(jimb)
Comment on attachment 8753529 [details] [diff] [review] Elucidate reference counting of SharedImmutableStringsCache Review of attachment 8753529 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/vm/SharedImmutableStringsCache.cpp @@ +75,5 @@ > box_->refcount--; > if (box_->refcount == 0) > box_->chars_.reset(nullptr); > + > + box_ = nullptr; How can this matter? Aren't we in the destructor? ::: js/src/vm/SharedImmutableStringsCache.h @@ +328,5 @@ > size_t refcount; > Set set; > > Inner() > + : refcount(0) This especially.
Attachment #8753529 - Flags: review?(jimb) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: