{"id":12758,"date":"2015-11-06T11:15:20","date_gmt":"2015-11-06T16:15:20","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=12758"},"modified":"2015-11-06T11:15:20","modified_gmt":"2015-11-06T16:15:20","slug":"shoot-the-heap","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/11\/06\/shoot-the-heap\/","title":{"rendered":"Shoot the Heap"},"content":{"rendered":"<p><a href=\"http:\/\/www.russbishop.net\/shoot-the-heap\">Russ Bishop<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.russbishop.net\/shoot-the-heap\">\n<p>Ah, the joys of non-garbage-collected languages. I spent some time debugging a retain cycle today and thought I&rsquo;d share the process I used to locate and fix the cycle. Along the way, we&rsquo;ll see how the Leaks instrument is a dirty <em>filthy<\/em> liar, watch as Xcode inexplicably mixes old and new code into the same binary yielding <em>impossible<\/em> behavior, and finally figure out how to use heap shots (or as the new Allocations instrument calls them <em>Generations<\/em>) to find the retain cycle even in the midst of a retain\/release history thousands of entries long.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Russ Bishop: Ah, the joys of non-garbage-collected languages. I spent some time debugging a retain cycle today and thought I&rsquo;d share the process I used to locate and fix the cycle. Along the way, we&rsquo;ll see how the Leaks instrument is a dirty filthy liar, watch as Xcode inexplicably mixes old and new code into [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[225,31,571,54,71,226],"class_list":["post-12758","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-instruments","tag-ios","tag-memory-management","tag-objective-c","tag-programming","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=12758"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12758\/revisions"}],"predecessor-version":[{"id":12759,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/12758\/revisions\/12759"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=12758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=12758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=12758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}