We should add an API to make it possible to force a cycle-collection on command. This would be useful both for testing purposes during performance tests, and useful for crash-testing during fuzzing. Patch coming up.
Comment on attachment 284069 [details] [diff] [review] Patch to fix >+ >+ /** >+ * Force a garbage collection. This will run the cycle-collector twice to >+ * make sure all garbage is collected. >+ */ Why it is actually needed to run CC twice? Didn't you say something that Peterv's patch fixes that?
It will, but that patch hasn't landed yet.
12 years ago
Comment on attachment 284069 [details] [diff] [review] Patch to fix * @param aElement the element to focus */ void focus(in nsIDOMElement aElement); + + /** + * Force a garbage collection. This will run the cycle-collector twice to + * make sure all garbage is collected. + */ + void garbageCollect(); Dude, no tabs! :) And add to the comment that this is only callable with elevated privs (feel free to ignore the debug aspect of that if you want to). r+sr+a=jst with that.
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
What is the difference between this method and Components.utils.forceGC() ?
11 years ago
You need to log in before you can comment on or make changes to this bug.