Simplify string deduplication code by taking advantage of dependent string sweeping
Categories
(Core :: JavaScript: GC, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink, NeedInfo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(1 file)
We no longer have to give up when hitting a tenured string while walking up a dependent string's base chain. All we need is the root of the base chain tree.
Assignee | ||
Comment 1•7 months ago
|
||
Rather than laboriously walking the chain of dependent strings, unconditionally collapse everything to a single base during a minor GC, force the base to be traced (while recording information about the previous value), and then sweep the dependent string to update the chars pointer in case it moved (using the previous value and the new value). Previously too much information was being destroyed, and in an order-dependent way.
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 2•6 months ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:sfink, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Assignee | ||
Updated•6 months ago
|
Comment 4•6 months ago
|
||
Backed out for causing SM bustages in bug1375074.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/bug1375074.js | Unknown (code -11, args "") [0.1 s]
Description
•