Closed
Bug 945813
Opened 11 years ago
Closed 11 years ago
Paper over cycle collection problem in IndexedDB
Categories
(Core :: Storage: IndexedDB, defect)
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: wingo, Assigned: wingo)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
7.34 KB,
patch
|
wingo
:
review+
|
Details | Diff | Splinter Review |
Bug 943409 describes an instance of a cycle collection problem in indexedDB, and adds a minimal test case. There are three instances of this problem in the codebase:
dom/indexedDB/test/unit/test_cursor_mutation.js
dom/indexedDB/test/unit/test_index_object_cursors.js
dom/indexedDB/test/unit/test_index_update_delete.js
The attached patch works around the issues in these three tests, in preparation for bug 927782.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → wingo
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 8341801 [details] [diff] [review]
Paper over cycle collection problem in IndexedDB
Adding mccr8 for a quick review; it's the same as bug 943409, but with two additional tests. Adding khuey as suggested there for rubber stampage.
Attachment #8341801 -
Flags: review?(khuey)
Attachment #8341801 -
Flags: review?(continuation)
Updated•11 years ago
|
Attachment #8341801 -
Flags: review?(continuation) → review+
Attachment #8341801 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 3•11 years ago
|
||
Flags: in-testsuite-
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Whoops, meant to back this one out the first time for the xpcshell crashes but accidentally did bug 945828 instead. Please make sure this passes on Try before requesting checkin again.
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb35692e00ec
Assignee | ||
Comment 5•11 years ago
|
||
Yep, sorry about that. Odd that it passes locally...
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8341801 -
Attachment is obsolete: true
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8342346 -
Attachment is obsolete: true
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8342347 [details] [diff] [review]
Paper over cycle collection problem in IndexedDB khuey
New patch uses eval('') to force all locals onto the scope chain, to better simulate what will happen after bug 927782 lands. Instead of relying on gc, manually null out locals that cause cycles. Tested locally on linux64-debug; trybuild here: https://tbpl.mozilla.org/?tree=Try&rev=a76ba05fd069
Marking r+ as it is pretty much the same as previous patches.
Attachment #8342347 -
Flags: review+
Assignee | ||
Comment 9•11 years ago
|
||
Looking green, https://tbpl.mozilla.org/?tree=Try&rev=fc1f986c5aac -- let's hit it
Keywords: checkin-needed
Comment 10•11 years ago
|
||
Keywords: checkin-needed
Comment 11•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•