{"id":2354,"date":"2012-10-31T15:43:59","date_gmt":"2012-10-31T04:43:59","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=2354"},"modified":"2012-10-31T15:43:59","modified_gmt":"2012-10-31T04:43:59","slug":"memshrink-progress-week-71-72","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2012\/10\/31\/memshrink-progress-week-71-72\/","title":{"rendered":"MemShrink progress, week 71&#8211;72"},"content":{"rendered":"<h3>B2G<\/h3>\n<p>Justin Lebar led the B2G charge this fortnight, doing the following.<\/p>\n<ul>\n<li>He <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=800166\">added code to fire a low-memory notification when a B2G process is backgrounded<\/a>, which will ensure that background processes use as little memory as possible.<\/li>\n<li>He<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=800170\"> reduced the amount of memory used to store screenshots<\/a>.<\/li>\n<li>He <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=800486\">added the ability to dump a GC and CC log upon receiving a particular signal<\/a>.<\/li>\n<li>He <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=802777\">reduced the amount of decompressed image data that is held onto on B2G<\/a>.\u00a0 This is a trade-off that saves memory but maybe require images to be decoded again later, which can lead to images temporarily not showing or flickering.<\/li>\n<\/ul>\n<p>Thinker Li <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=804891\">identified that we were using overly large (128 KiB) arena chunks for type inference data in the JS engine<\/a>.\u00a0 Reducing them to 32 KiB saved over 3 MiB of memory on B2G.<\/p>\n<p>Fabrice Desr\u00e9 <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=794228\">disabled the add-on manager services<\/a>, saving about 1 MiB.<\/p>\n<p>These changes have all been backported to Aurora, because that&#8217;s the current home of the code that will be used for the V1 release of B2G.<\/p>\n<h3>Social API<\/h3>\n<p>Jared Wein <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=802435\">modified the social sidebar so that it unloads itself 10 seconds after it&#8217;s been hidden<\/a>.\u00a0 This is good because lots of people thought that closing the sidebar was equivalent to disabling the social functionality, and with this change it now effectively is.<\/p>\n<p>Felipe Gomes <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=802929\">fixed a major problem which caused the social API to create and leak many unnecessary ports<\/a>.<\/p>\n<h3>Gecko &amp; SpiderMonkey<\/h3>\n<p>Benoit Jacob <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=795186\">fixed a leak relating to WebGL and cycle collection<\/a>.\u00a0 This fixed <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=800488\">10 seconds pauses that occurred after running the RO.ME demo<\/a>, and also fixed <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=802834\">leaks seen in the WebGL version of Nokia Maps<\/a>.<\/p>\n<p>Kyle Huey f<a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=802239\">ixed a bug that was causing storage code to leak one thread per connection<\/a>.\u00a0 This doesn&#8217;t affect most Firefox users much, because most connections live for the full lifetime of the process.\u00a0 However, it could affect some add-ons, and it helped avoid some frequent OOM oranges in some of our tests.<\/p>\n<p>Benjamin Peterson <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=804857\">reduced the amount of memory used to compress JavaScript source code<\/a>.<\/p>\n<h3>Add-ons<\/h3>\n<p>Zig <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=724377\">fixed a zombie compartment in the Visited add-on<\/a>.<\/p>\n<h3>Bug Counts<\/h3>\n<p>Here are the current bug counts.<\/p>\n<ul>\n<li>P1: 18 (-4\/+3)<\/li>\n<li>P2: 113 (-2\/+14)<\/li>\n<li>P3: 97 (-1\/+7)<\/li>\n<li>Unprioritized: 2 (-13\/+2)<\/li>\n<\/ul>\n<p>Note:\u00a0 in all my previous MemShrink reports, I mentioned bug fixes as soon as they landed on mozilla-inbound.\u00a0 As of this week, I&#8217;m changing things so that I (mostly) only mention bug fixes that have landed on mozilla-central and thus been marked as RESOLVED.\u00a0 This will make my life easier (tracking RESOLVED bugs is easy with Bugzilla search), and it will also mean that the changes in bug counts better match the descriptions of bug fixes.\u00a0 But it means that some bug fixes will be reported two weeks later than they previously would.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>B2G Justin Lebar led the B2G charge this fortnight, doing the following. He added code to fire a low-memory notification when a B2G process is backgrounded, which will ensure that background processes use as little memory as possible. He reduced the amount of memory used to store screenshots. He added the ability to dump a [&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,4261,30,4544,4546],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2354"}],"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=2354"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2354\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=2354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=2354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}