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

commits at source.squeak.org commits at source.squeak.org
Wed Oct 9 16:14:21 UTC 2013

Eliot Miranda uploaded a new version of Cog to project VM Maker:

==================== Summary ====================

Name: Cog-eem.108
Author: eem
Time: 9 October 2013, 9:13:47.265 am
UUID: 5987309e-f957-42d5-856f-a599ebb32f0e
Ancestors: Cog-eem.107, Cog-eem.104

Reattach history lost in the 105 commit.

=============== Diff against Cog-eem.107 ===============

Item was changed:
  ----- Method: SpurBootstrap>>writeSnapshotOfTransformedImage (in category 'testing') -----
  	"The bootstrapped image typically contains a few big free chunks and one huge free chunk.
  	 Test snapshot writing and loading by turning the largest non-huge chunks into segment bridges
  	 and saving."
  	| heap sizes counts barriers sim |
  	heap := TransformedImage veryDeepCopy.
  	sim := StackInterpreterSimulator onObjectMemory: heap.
  	heap coInterpreter: sim.
  	sim initializeInterpreter: 0.
  	sizes := Bag new.
  	heap allObjectsInFreeTree: (heap freeLists at: 0) do:
  		sizes add: (heap bytesInObject: f)].
  	counts := sizes sortedCounts.
  	self assert: counts last key = 1. "1 huge chunk"
  	self assert: ((counts at: counts size - 1) key > 2
  				and: [(counts at: counts size - 1) value > 1024]).
  	barriers := (1 to: (counts at: counts size - 1) key) collect:
  					[:ign| heap allocateOldSpaceChunkOfExactlyBytes: (counts at: counts size - 1) value].
  	heap segmentManager initializeFromFreeChunks: (barriers sort collect: [:b| heap objectStartingAt: b]).
  	sim imageName: 'spur.image'.
+ 	sim writeImageFileIO!
- 	sim writeImageFileIO: heap !

More information about the Vm-dev mailing list