Closed
Bug 1065186
Opened 9 years ago
Closed 9 years ago
Turn off COWs for Arrays
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: bholley, Assigned: bholley)
References
Details
(Keywords: addon-compat)
Attachments
(2 files, 1 obsolete file)
3.77 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
5.42 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
My spidey senses tell me that, if we can successfully do bug 1065185, this may also be straightforward.
Assignee | ||
Comment 1•9 years ago
|
||
Note - If the landing of this bug breaks your code, you need to find a different way to expose Arrays to content. For DOM APIs, you should use WebIDL bindings. For extensions etc, you should use |new contentWindow.Array()| or |Cu.cloneInto(yourArray, contentWindow)|. https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=08d1df66f8a1
Comment 2•9 years ago
|
||
CCing Matteo just in case since we had to resolve a breakage related to bug 1065185 in jetpack. I don't expect this one to cause any more issues but we'll see.
Assignee | ||
Comment 3•9 years ago
|
||
linux64 is green. Let's see about the rest of CI: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c7e99220354e
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8504083 -
Flags: review?(gkrizsanits)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8504084 -
Flags: review?(gkrizsanits)
Comment 6•9 years ago
|
||
(In reply to Bobby Holley (:bholley) from comment #4) > Created attachment 8504083 [details] [diff] [review] > Part 1 - Fix up test suite to not rely on COWed Arrays. v1 Some changes of this patch seem to belong to Bug 1081990 no? Is it intentional that you add functions related tests here?
Updated•9 years ago
|
Attachment #8504084 -
Flags: review?(gkrizsanits) → review+
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Gabor Krizsanits [:krizsa :gabor] from comment #6) > Some changes of this patch seem to belong to Bug 1081990 no? Is it > intentional that you add functions related tests here? I switched them over to Function to test a different kind of COW (aside from Object), before I started feeling ambitious about nuking Function COWs as well. ;-) Anyway, I decided to do bug 1082450 before landing this bug, so I'm holding off on the patches here for the moment. Hopefully this should all land very soon.
Comment 8•9 years ago
|
||
Comment on attachment 8504083 [details] [diff] [review] Part 1 - Fix up test suite to not rely on COWed Arrays. v1 Review of attachment 8504083 [details] [diff] [review]: ----------------------------------------------------------------- Alright let me know if you want me to review in it's current form then, but I guess then it might change soon, so I just cancel the review for now.
Attachment #8504083 -
Flags: review?(gkrizsanits)
Assignee | ||
Comment 9•9 years ago
|
||
This is now rebased on top of bug 1082450. And doesn't do any shortsighted Array => Function switches.
Attachment #8504083 -
Attachment is obsolete: true
Attachment #8505285 -
Flags: review?(gkrizsanits)
Updated•9 years ago
|
Attachment #8505285 -
Flags: review?(gkrizsanits) → review+
Assignee | ||
Comment 10•9 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/d6aadffaf239 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/ce796ac8901b
Comment 11•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d6aadffaf239 https://hg.mozilla.org/mozilla-central/rev/ce796ac8901b
Assignee: nobody → bobbyholley
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Assignee | ||
Updated•9 years ago
|
Keywords: addon-compat
You need to log in
before you can comment on or make changes to this bug.
Description
•