Closed
Bug 445570
Opened 16 years ago
Closed 16 years ago
More heap autostrings
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(4 files, 1 obsolete file)
(deleted),
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
I fixed a bug in some analysis scripts and discovered some more cases where we use autostrings on the heap. Patches forthcoming, separated by module.
Assignee | ||
Comment 1•16 years ago
|
||
Attachment #329886 -
Flags: review?(jst)
Assignee | ||
Comment 2•16 years ago
|
||
Attachment #329887 -
Flags: review?(dbaron)
Assignee | ||
Comment 3•16 years ago
|
||
Attachment #329888 -
Flags: review?(mrbkap)
Assignee | ||
Comment 4•16 years ago
|
||
Attachment #329889 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #329889 -
Flags: review? → review?(kaie)
Updated•16 years ago
|
Attachment #329886 -
Flags: superreview+
Attachment #329886 -
Flags: review?(jst)
Attachment #329886 -
Flags: review+
Updated•16 years ago
|
Attachment #329888 -
Flags: review?(mrbkap) → review+
Comment 5•16 years ago
|
||
Comment 6•16 years ago
|
||
Comment on attachment 329887 [details] [diff] [review]
layout heap autostrings, rev. 1
I think this is going to cause a substantial increase in allocations, and I don't see why it's bad to use nsAutoString in cases like this.
Attachment #329887 -
Flags: review?(dbaron) → review-
Comment 7•16 years ago
|
||
Comment on attachment 329887 [details] [diff] [review]
layout heap autostrings, rev. 1
(And if you request review again, please include startup performance test results showing no regression.)
Updated•16 years ago
|
Attachment #329889 -
Flags: review?(kaie) → review+
Assignee | ||
Comment 8•16 years ago
|
||
ok, this marks this particular heap autostring as ok, while keeping the general rule. Looking at the usage of mIdent in nsCSSParser, I'm surprised that an autostring helps, but I can't figure out how to get precise stats on it and try-talos wasn't handing out consistent numbers, so I'll just go with the annotated override.
Attachment #329887 -
Attachment is obsolete: true
Attachment #334296 -
Flags: review?(dbaron)
Assignee | ||
Comment 9•16 years ago
|
||
Pushed the PSM patch to mozilla-central, http://hg.mozilla.org/mozilla-central/index.cgi/rev/13ed1c63513b
Updated•16 years ago
|
Attachment #329889 -
Attachment description: PSM heap autostring, rev. 1 → PSM heap autostring, rev. 1
[Checkin: Comment 9]
Updated•16 years ago
|
Attachment #329886 -
Attachment description: content heap autostrings, rev. 1 → content heap autostrings, rev. 1
[Checkin: Comment 5]
Updated•16 years ago
|
Attachment #329888 -
Attachment description: Parser heap autostring, rev. 1 → Parser heap autostring, rev. 1
[Checkin: Comment 5]
Updated•16 years ago
|
Component: General → String
QA Contact: general → string
Version: unspecified → Trunk
Comment 10•16 years ago
|
||
Comment on attachment 334296 [details] [diff] [review]
Mark CSSToken::mIdent as ok-on-heap, rev. 1
r=dbaron (I'm probably not a valid reviewer for stack.js, but I'm not sure if it requires review)
Attachment #334296 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 11•16 years ago
|
||
Layout patch pushed: http://hg.mozilla.org/mozilla-central/index.cgi/rev/6437cdc9973e
It turns out there was an analysis error which, once fixed, has found additional situations, but I'm going to spin those in separate bugs to keep this one sane.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•