Closed Bug 445570 Opened 16 years ago Closed 16 years ago

More heap autostrings

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(4 files, 1 obsolete file)

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.
Attachment #329886 - Flags: review?(jst)
Attached patch layout heap autostrings, rev. 1 (obsolete) (deleted) — Splinter Review
Attachment #329887 - Flags: review?(dbaron)
Attachment #329888 - Flags: review?(mrbkap)
Attachment #329889 - Flags: review?
Attachment #329889 - Flags: review? → review?(kaie)
Attachment #329886 - Flags: superreview+
Attachment #329886 - Flags: review?(jst)
Attachment #329886 - Flags: review+
Attachment #329888 - Flags: review?(mrbkap) → review+
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 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.)
Attachment #329889 - Flags: review?(kaie) → review+
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)
Attachment #329889 - Attachment description: PSM heap autostring, rev. 1 → PSM heap autostring, rev. 1 [Checkin: Comment 9]
Attachment #329886 - Attachment description: content heap autostrings, rev. 1 → content heap autostrings, rev. 1 [Checkin: Comment 5]
Attachment #329888 - Attachment description: Parser heap autostring, rev. 1 → Parser heap autostring, rev. 1 [Checkin: Comment 5]
Component: General → String
QA Contact: general → string
Version: unspecified → Trunk
Depends on: 26622
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+
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
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: