You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started with analyzing this directory, because Ben knows the cycle collector so I decided it would probably not be very funky, and there was a bug fixed with it for JS_ClearScope.
Subissues:
There are a large set of results the analysis finds that have comments like "don't unlink this!" in the Traverse/Unlink functions. I need to come up with some way to deal with this, probably at first with a white list baked into the analysis, and in the long term some kind of attributes in the code itself.
The analysis also found that mozilla::dom::indexedDB::IDBDatabase::mOnBlockedListener was not Traverse/Unlinked. Ben said that this field isn't actually needed, and can be removed. This is the first real mistake I have found. I filed Bug 669810 for this, which has now been fixed.
There were also some fields that the analysis found that Ben said don't need to be unlinked because they point to
mozIStorageStatement and mozIStorageConnection, and those classes are not cycle collected. These classes are both abstract, and subclasses of nsISupports, so I'm not sure how we can automatically determine that they are not cycle collected. We can try adding them to a whitelist of non-CCed classes, and maybe confirm that no file declares a subclass of these that is cycle collected.
The text was updated successfully, but these errors were encountered:
I started with analyzing this directory, because Ben knows the cycle collector so I decided it would probably not be very funky, and there was a bug fixed with it for JS_ClearScope.
Subissues:
mozIStorageStatement and mozIStorageConnection, and those classes are not cycle collected. These classes are both abstract, and subclasses of nsISupports, so I'm not sure how we can automatically determine that they are not cycle collected. We can try adding them to a whitelist of non-CCed classes, and maybe confirm that no file declares a subclass of these that is cycle collected.
The text was updated successfully, but these errors were encountered: