Closed Bug 945828 Opened 11 years ago Closed 11 years ago

Work around bug 945756

Categories

(Core :: XPConnect, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28
Tracking Status
firefox28 --- fixed

People

(Reporter: wingo, Assigned: wingo)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Bug 945756 is a case in which a local being allocated on the scope chain instead of the frame is creating some kind of cycle that is causing an xpcshell test to core at the end.  This only happens in debug mode, but still.

It's possible to get that local onto the scope chain with the code as-is, by aliasing it via a nested procedure, but bug 927782 will put it and all locals in all generators on the scope chain.  Therefore for generators work to proceed, we need to work around bug 945756.  The attached patch does so by avoiding making a local at all.  Gross.
Assignee: nobody → wingo
Comment on attachment 8341812 [details] [diff] [review]
Work around bug 945756

Setting r? to luke, but really I have no idea who would be appropriate -- feel free to steal, I reckon
Attachment #8341812 - Flags: review?(luke)
Comment on attachment 8341812 [details] [diff] [review]
Work around bug 945756

Oh yeah, these bugs.  I hit like 3 during the aliasedvar work.
Attachment #8341812 - Flags: review?(luke) → review+
Keywords: checkin-needed
As mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=945813#c4, this was an erroneous backout.  Re-setting checkin-needed.
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/48ee35b92973
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: