<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 6, 2014 at 4:35 PM, Colin Putney <span dir="ltr">&lt;<a href="mailto:colin@wiresong.com" target="_blank">colin@wiresong.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">
<div class="im">On Mon, Jan 6, 2014 at 4:40 PM, Tobias Pape <span dir="ltr">&lt;<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>&gt;</span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Before trying to shrink, check that there are _not_ the 8 Obsoletes I talked about in<br>


&lt;<a href="mailto:94EA41C1-42EF-462E-8883-A8999AA7CB03@gmx.de" target="_blank">94EA41C1-42EF-462E-8883-A8999AA7CB03@gmx.de</a>&gt; (<a href="http://forum.world.st/Obsoletes-tp4732904p4732931.html" target="_blank">http://forum.world.st/Obsoletes-tp4732904p4732931.html</a>)<br>

</blockquote><div><br></div></div><div>Aha!</div><div><br></div><div>In the latest Trunk, there&#39;s only 6 obsolete classes, as the recent Environment changes fixed the two of them. The following script, adapted from your post above, cleans them up nicely:</div>

<div><br></div><div><div>&quot; Fix obsolete ColorTheme&quot;</div><div>ColorTheme current class isObsolete ifTrue: [</div><div><span style="white-space:pre-wrap">        </span>ColorTheme current: nil.</div><div><span style="white-space:pre-wrap">        </span>Smalltalk garbageCollect.</div>

<div><span style="white-space:pre-wrap">        </span>ColorTheme current].</div><div><br></div><div>&quot; Fix obsolete uncle classes (cls-&gt;meta-&gt;super)&quot;</div><div>(Smalltalk allClasses select: [:cls | cls theMetaClass superclass isObsolete]</div>

<div>) copy do: [:withObsoleteUncle | | cls2 |</div><div><span style="white-space:pre-wrap">        </span>cls2 := withObsoleteUncle addInstVarName: &#39;veryUnlikelyToExisitAnywhereInTheSystemAsVariableName&#39;.</div><div>
<span style="white-space:pre-wrap">        </span>Smalltalk garbageCollect.</div><div><span style="white-space:pre-wrap">        </span>cls2 removeInstVarName: &#39;veryUnlikelyToExisitAnywhereInTheSystemAsVariableName&#39;.].</div>
<div>Smalltalk garbageCollect.</div><div>Smalltalk fixObsoleteReferences.</div></div><div><br></div><div><br></div><div><br></div><div>Running &quot;Smalltalk shrink&quot; then complains about two obsolete behaviours, and I this is a bug with Installer. If I just close the debugger and inspector, collect garbage and then run &quot;SystemNavigation default obsoleteBehaviors&quot; I get an empty array. </div>

<div><br></div><div>So it looks like the shrink works. It doesn&#39;t do much, though. My image goes from 20.9MB, down to 20.3MB. </div></div></div></div></blockquote><div><br></div><div>and (just to check) you&#39;ve already done Smalltalk unloadReloadablePackages?  I managed to get down to a 12 Mb minimal trunk but I had to hack fix a lot of MNUs.  Basically we have work to do to make those packages really unload.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<span class=""><font color="#888888"><div>Colin</div></font></span></div></div></div></blockquote></div><div>-- <br></div>best,<div>Eliot</div>
</div></div>