Closed
Bug 640852
Opened 14 years ago
Closed 14 years ago
can we remove the atom-compartment-avoidance gunk from string marking?
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: luke, Assigned: luke)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
5.02 KB,
patch
|
gwagner
:
review+
|
Details | Diff | Splinter Review |
Bill and Gregor couldn't think of any reason it was bad to mark atoms in the atomCompartment during a per-compartment gc. Removing the gunk not only removes a tidy bit of code, bit makes a simple marking microbench (the one in bug 616562 comment 0) 5% faster.
Attachment #518609 -
Flags: review?(anygregor)
Comment 1•14 years ago
|
||
Comment on attachment 518609 [details] [diff] [review]
rm
Can we leave the part where we assert that all "chained" strings are in the same compartment or end in the atomsCompartment?
Attachment #518609 -
Flags: review?(anygregor) → review+
Assignee | ||
Comment 2•14 years ago
|
||
Oh, I meant to comment on this:
My reasoning for nixing those is that the "same or atoms compartment" property is asserted by js_ConcatStrings which is the only way to get a rope, so all this really seems to be guarding against is some bizarre memory corruption. I.e., I don't these asserts would catch compartment misuses since those would (and do) hit earlier (hopefully much earlier now that assertSameCompartment checks strings).
Assignee | ||
Comment 3•14 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•