Closed Bug 773610 Opened 12 years ago Closed 8 years ago

Fix consumers that AddRef XPCWrappedJS off-main-thread


(Core :: XPConnect, defect)

Not set





(Reporter: bholley, Assigned: bholley)



Split off from bug 771074.
Fixed various consumers and pushed to try with fatal asserts. Let's see what our test suite hits:
Fixed more and pushed again:
Note that my patches are in a github branch here:
(In reply to Bobby Holley (:bholley) from comment #7)

Nice, linux is green! It's pretty likely that there are going to be some platform-specific failures here, so let's check those now:
Blocks: 844088
Blocks: 843923
Blocks: 839535
This is hitting an out-of-bounds nsTArray on windows that MOZ_ASSERTs before we get a stack. I replaced it with an NS_ASSERTION, which should hopefully dump a stack:
Ugh, the stacks here are being supremely unhelpful, and this doesn't reproduce locally for me.

I'm pretty sure it's related to one of the three patches that do something with nsTArray, so I'm pushing those three separately to try to see if we can get some more data:
I'm starting to think that the issue here might just be that nsTArray asserts against out-of-bounds access but nsCOMArray doesn't. Let's test that theory:
Depends on: 850054
Hm, so all three of the suspected patches on comment 10 went green on their own. I'm going to divide these up, start getting them reviewed, and focus on landing them individually to sort out the wackiness and decrease regression potential.
Depends on: 850245
Depends on: 850246
Depends on: 850247
Depends on: 850249
Depends on: 850251
Depends on: 850252
Depends on: 850255
Depends on: 850253
Moving deps up a few levels.
No longer blocks: 839535, 843923
No longer blocks: 844088
All the blocking bugs here have been fixed, but there are still some places that need to be fixed up.  See bug 770840 comment 4.
Just making sure I don't lose track of this.
Flags: needinfo?(josh)
Depends on: 869893
Depends on: 869928
Depends on: 870782
Depends on: 870864
Depends on: 870916
Depends on: 873615
Depends on: 870887
Depends on: 871125
Depends on: 882125
Depends on: 882424
Depends on: 882200
Depends on: 882196
Depends on: 882637
Depends on: 882328
Depends on: 883495
Depends on: 884200
Depends on: 884792
Flags: needinfo?(josh)
Depends on: 885292
Depends on: 887191
Depends on: 889885
Depends on: 892340
Depends on: 899453
We assert against this now.
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.