[Vm-dev] VM Maker: Cog-eem.98.mcz

David Ungar ungar at me.com
Sat Sep 21 15:50:37 UTC 2013


Nice to be reference in the code. Thanks!

- David (from iPad, typos likely)

> On Sep 21, 2013, at 7:50 AM, Frank Shearar <frank.shearar at gmail.com> wrote:
> 
> 
>> On 21 September 2013 15:41,  <commits at source.squeak.org> wrote:
>> 
>> Eliot Miranda uploaded a new version of Cog to project VM Maker:
>> http://source.squeak.org/VMMaker/Cog-eem.98.mcz
>> 
>> ==================== Summary ====================
>> 
>> Name: Cog-eem.98
>> Author: eem
>> Time: 21 September 2013, 7:41:44.069 am
>> UUID: 8027e935-f7b0-417a-be44-954c5765582d
>> Ancestors: Cog-eem.97
>> 
>> fix a couple of comments
>> 
>> =============== Diff against Cog-eem.97 ===============
>> 
>> Item was changed:
>>  ----- Method: SpurBootstrap class>>SmalltalkImagePROTOTYPEsetGCParameters (in category 'method prototypes') -----
>>  SmalltalkImagePROTOTYPEsetGCParameters
>>        "Adjust the VM's default GC parameters to avoid too much tenuring.
>>         Maybe this should be left to the VM?"
>> 
>>        | proportion edenSize survivorSize averageObjectSize numObjects |
>>        proportion := 0.9. "tenure when 90% of pastSpace is full"
>>        edenSize := SmalltalkImage current vmParameterAt: 44.
>> +       survivorSize := edenSize / 5.0. "David's paper uses 140Kb eden + 2 x 28kb survivor spaces; Spur uses the same ratios :-)"
>> -       survivorSize := edenSize / 5.0. "David's paper uses 140Kb eden + 2 x 28kb survivor spaces; Spur does the same :-)"
>>        averageObjectSize := 8 * self wordSize. "a good approximation"
>>        numObjects := (proportion * survivorSize / averageObjectSize) rounded.
>>        SmalltalkImage current vmParameterAt: 6 put: numObjects  "tenure when more than this many objects survive the GC"!
>> 
>> Item was changed:
>>  ----- Method: SpurBootstrap class>>SystemDictionaryPROTOTYPEsetGCParameters (in category 'method prototypes') -----
>>  SystemDictionaryPROTOTYPEsetGCParameters
>>        "Adjust the VM's default GC parameters to avoid too much tenuring.
>>         Maybe this should be left to the VM?"
>> 
>>        | proportion edenSize survivorSize averageObjectSize numObjects |
>>        proportion := 0.9. "tenure when 90% of pastSpace is full"
>>        edenSize := SmalltalkImage current vmParameterAt: 44.
>> +       survivorSize := edenSize / 5.0. "David's paper uses 140Kb eden + 2 x 28kb survivor spaces; Spur uses the same ratios :-)"
> 
> I presume that's David Ungar? Which paper is it?
> 
> Thanks!
> 
> frank


More information about the Vm-dev mailing list