Closed Bug 1353181 Opened 7 years ago Closed 7 years ago

Make nsStringBuffer's reference count use the minimum memory synchronization needed

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: dbaron, Assigned: dbaron)

References

Details

Attachments

(1 file)

This is the same optimization made for ThreadSafeAutoRefCnt in bug
1277709.  However, nsStringBuffer uses a 32-bit reference count all the
time, so it can't easily use ThreadSafeAutoRefCnt.

MozReview-Commit-ID: LpB3xaYbaEE
Component: XPCOM → String
This is the same optimization made for ThreadSafeAutoRefCnt in bug
1277709.  However, nsStringBuffer uses a 32-bit reference count all the
time, so it can't easily use ThreadSafeAutoRefCnt.

MozReview-Commit-ID: LpB3xaYbaEE
Attachment #8854185 - Flags: review?(nfroyd)
Comment on attachment 8854185 [details] [diff] [review]
Make nsStringBuffer's reference count use the minimum memory synchronization needed

Review of attachment 8854185 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for the comment in IsReadonly().
Attachment #8854185 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/b6f0b34e87f26826fb65c9889d6d1f24fc6f200c
Bug 1353181 - Make nsStringBuffer's reference count use the minimum memory synchronization needed.  r=froydnj
https://hg.mozilla.org/mozilla-central/rev/b6f0b34e87f2
https://hg.mozilla.org/mozilla-central/rev/19c4e80bee84
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: