Closed
Bug 1273647
Opened 9 years ago
Closed 9 years ago
Elucidate reference counting of SharedImmutableStringsCache
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
Attachments
(1 file, 2 obsolete files)
|
9.86 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8753525 -
Flags: review?(jimb)
| Assignee | ||
Comment 2•9 years ago
|
||
| Assignee | ||
Comment 3•9 years ago
|
||
s/enlucidate/elucidate/
Too much emplacing...
Attachment #8753527 -
Flags: review?(jimb)
| Assignee | ||
Updated•9 years ago
|
Attachment #8753525 -
Attachment is obsolete: true
Attachment #8753525 -
Flags: review?(jimb)
| Assignee | ||
Updated•9 years ago
|
Summary: Enlucidate reference counting of SharedImmutableStringsCache → Elucidate reference counting of SharedImmutableStringsCache
| Assignee | ||
Comment 4•9 years ago
|
||
Forgot to remove one set of now-replaced refcount++s.
Attachment #8753529 -
Flags: review?(jimb)
| Assignee | ||
Updated•9 years ago
|
Attachment #8753527 -
Attachment is obsolete: true
Attachment #8753527 -
Flags: review?(jimb)
| Assignee | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
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+
Comment 8•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•