Closed Bug 729427 Opened 12 years ago Closed 12 years ago

Incremental GC should mark filenames of newly allocated scripts

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13
Tracking Status
firefox13 + fixed

People

(Reporter: igor, Assigned: igor)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

See bug #641025 comment 124:
We also need to mark whenever we look up a filename in the hashtable, since it's effectively a weak pointer.
(In reply to Bill McCloskey (:billm) from comment #1)
> We also need to mark whenever we look up a filename in the hashtable, since
> it's effectively a weak pointer.

My plan is to mark newly incremental filename entries under the incremental GC. The rest of cases should be covered by normal marking as the filename is never overwritten. But eventually I want to either remove them or at least turn them into atoms. My initial measurements shows that filename strings are atoms in about 10-15% cases so turning mostly ascii string into UTF16 char array + JSString header should not bloat memory match...
Attached patch v1Splinter Review
Attachment #600089 - Flags: review?(wmccloskey)
Comment on attachment 600089 [details] [diff] [review]
v1

Thanks.
Attachment #600089 - Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/mozilla-central/rev/f3b449b1eea2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: