Move construction/assignment of nsTArray is too complex
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
References
Details
Attachments
(3 files)
Move construction/assignment (and similarly Assign/AppendElements operations moving from a source array) should be simple operations. However, right now they are based on SwapArrayElements
, which due to its generality is quite complex. This can be simplified based on the knowledge that the target array is empty. For move construction, this can even be further simplified when we know that the target array is not an AutoTArray
.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D84804
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D84805
Comment 5•5 years ago
|
||
Backed out 4 changesets (Bug 1654992, Bug 1654991) for causing timeous in mask-opacity-1e.html
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=311901321&repo=autoland&lineNumber=2840
Backout: https://hg.mozilla.org/integration/autoland/rev/61c16b78c2513fb0c6f552ee5fddd1c1648105a2
Assignee | ||
Comment 6•5 years ago
|
||
The defect was in the patch for Bug 1654992, which I now fixed.
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/58b72de320e1
https://hg.mozilla.org/mozilla-central/rev/649d2bc6ad86
https://hg.mozilla.org/mozilla-central/rev/6f09ee25da28
Description
•