[squeak-dev] The Inbox: System-edc.512.mcz

H. Hirzel hannes.hirzel at gmail.com
Mon Jan 21 21:28:02 UTC 2013


On 1/21/13, Chris Muller <asqueaker at gmail.com> wrote:
> -10.  Updating the image is done under many use-cases, not just
> building an image.  There are many cases where you would not want this
> done.


Such as for example?


Cleaning the image must be its own independent operation
> independent of other operations, especially the ones for _building_
> the image.


The fact that Edgar points out is that the code snippet makes the
image smaller. This is indeed the case.

A fresh build from the trunk as of today goes down from
http://www.squeakci.org/job/SqueakTrunk/

16.7 MB to 15.287 MB


The number of times a garbage collection is made (1 or 3) indeed does
not have a visible effect.

It might be that this was necessary in earlier versions.



--Hannes



> On Mon, Jan 21, 2013 at 8:05 AM,  <commits at source.squeak.org> wrote:
>> Edgar J. De Cleene uploaded a new version of System to project The Inbox:
>> http://source.squeak.org/inbox/System-edc.512.mcz
>>
>> ==================== Summary ====================
>>
>> Name: System-edc.512
>> Author: edc
>> Time: 21 January 2013, 11:05:08.17 am
>> UUID: d7a321ce-cf99-4b7d-9c9f-12e0470672a7
>> Ancestors: System-fbs.511
>>
>> When you update from server , the resuting image is not cleaned and bigger
>> as should be.
>>
>> =============== Diff against System-fbs.511 ===============
>>
>> Item was changed:
>>   ----- Method: Utilities class>>updateFromServer (in category 'fetching
>> updates') -----
>>   updateFromServer
>>         "Update the image by loading all pending updates from the
>> server."
>>         | config |
>>         "Flush all caches. If a previous download failed this is often
>> helpful"
>>         MCFileBasedRepository flushAllCaches.
>>         config := MCMcmUpdater updateFromDefaultRepository.
>>         config ifNil: [^self inform: 'Unable to retrieve updates from
>> remote repository.' translated].
>>         self setSystemVersionFromConfig: config.
>>         self inform: ('Update completed.
>> + Current update number: ' translated, SystemVersion current
>> highestUpdate).
>> + self updateFromServerCleanup.!
>> - Current update number: ' translated, SystemVersion current
>> highestUpdate).!
>>
>> Item was added:
>> + ----- Method: Utilities class>>updateFromServerCleanup (in category
>> 'fetching updates') -----
>> + updateFromServerCleanup
>> +       MCFileBasedRepository flushAllCaches.
>> + MCDefinition clearInstances.
>> + 3 timesRepeat: [ Smalltalk garbageCollect].
>> + !
>>
>>
>
>


More information about the Squeak-dev mailing list