{"id":2201,"date":"2012-08-08T15:52:27","date_gmt":"2012-08-08T04:52:27","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=2201"},"modified":"2012-08-08T15:52:27","modified_gmt":"2012-08-08T04:52:27","slug":"memshrink-progress-week-57-60","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2012\/08\/08\/memshrink-progress-week-57-60\/","title":{"rendered":"MemShrink progress, week 57&#8211;60"},"content":{"rendered":"<p>I&#8217;ve been on vacation for two weeks, so this report covers the past four weeks.\u00a0 I still have a mountain of unread emails, bug reports and blog posts to get through, but hopefully I haven&#8217;t missed much.<\/p>\n<h3>Hueyfix<\/h3>\n<p>I wrote about <a href=\"http:\/\/njn.valgrind.org\/ff15.html\">Firefox 15 and how it contains the &#8220;Hueyfix&#8221; that prevents most memory leaks caused by add-ons<\/a>.\u00a0 It got <a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/wt83r\/firefox_15_plugs_the_addon_leaks_memshrink_blog\/\">lots<\/a> of <a href=\"http:\/\/news.ycombinator.com\/item?id=4265006\">attention<\/a>.<\/p>\n<p>Relatedly, a regression caused by the Hueyfix was discovered:\u00a0 it <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=778318\">caused some Greasemonkey scripts to leak badly<\/a>, such as &#8220;YousableTubeFix&#8221; and &#8220;Textarea backup with expiry&#8221;.\u00a0 A change was made to Firefox to allow this to be prevented (which has been backported to Firefox 15 Beta), and Greasemonkey 0.9.22 should fix the problem, although that hasn&#8217;t yet been confirmed.\u00a0 If you have had problems with Firefox 15 and you are using Greasemonkey, this is a likely cause.\u00a0 I&#8217;m not aware of any other regressions caused by the Hueyfix.<\/p>\n<p>Also relatedly, Gabor Krizsanits made a change inspired by the Hueyfix that <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=769273\">cuts references to sandboxes once they should no longer be used<\/a>.\u00a0 This prevents a whole class of possible leaks in add-ons using the Add-on SDK.<\/p>\n<h3>Miscellaneous<\/h3>\n<p>Gregor Wagner <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=765435\">tweaked the JS engine&#8217;s garbage collection heuristics to greatly reduce the peak memory consumption in certain cases<\/a>.\u00a0 Gregor previously tweaked the GC heuristics in Firefox 7 with great success.<\/p>\n<p>Tim Taubert <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=728426\">fixed a leak caused by opening and closing the bookmarks sidebar<\/a>.\u00a0 This was a precursor to a more important change from Tim, which <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=728294\">adds automated checking of the cycle collection logs to check for leaks during testing<\/a>.\u00a0 This should allow a whole class of memory leaks to be detected automatically, thus preventing regressions.<\/p>\n<p>Benoit Jacob made a change that <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=617453\">prevents the number of WebGL contexts growing excessively<\/a>.\u00a0 This can greatly improve memory consumption on certain sites that use WebGL.<\/p>\n<p>Nick Cameron <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=767337\">fixed a problem that caused huge memory consumption (multiple GB) on pages using canvas in conjunction with certain Intel graphics cards and\/or drivers<\/a>.\u00a0 I don&#8217;t understand the details, but it sounds like some cards and\/or drivers might still have problems.<\/p>\n<h3>Bug Counts<\/h3>\n<p>Here are the current bug counts.<\/p>\n<ul>\n<li>P1: 23 (-0\/+3)<\/li>\n<li>P2: 89 (-9\/+8)<\/li>\n<li>P3: 105 (-2\/+5)<\/li>\n<li>Unprioritized: 1 (-2\/+1)<\/li>\n<\/ul>\n<p>Nothing spectacular there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been on vacation for two weeks, so this report covers the past four weeks.\u00a0 I still have a mountain of unread emails, bug reports and blog posts to get through, but hopefully I haven&#8217;t missed much. Hueyfix I wrote about Firefox 15 and how it contains the &#8220;Hueyfix&#8221; that prevents most memory leaks caused [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119,30,4555,4544,4546],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2201"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}