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

commits at source.squeak.org commits at source.squeak.org
Wed Oct 9 18:13:25 UTC 2013


Eliot Miranda uploaded a new version of Cog to project VM Maker:
http://source.squeak.org/VMMaker/Cog-eem.109.mcz

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

Name: Cog-eem.109
Author: eem
Time: 9 October 2013, 11:13:10.197 am
UUID: 8caa23c1-026c-4dde-948a-670395190d2a
Ancestors: Cog-eem.108

Set image flags in sim used to writeSnapshotOfTransformedImage

=============== Diff against Cog-eem.108 ===============

Item was changed:
  ----- Method: SpurBootstrap>>writeSnapshotOfTransformedImage (in category 'testing') -----
  writeSnapshotOfTransformedImage
  	"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;
+ 		setImageHeaderFlagsFrom: ImageHeaderFlags.
- 	sim initializeInterpreter: 0.
  	sizes := Bag new.
  	heap allObjectsInFreeTree: (heap freeLists at: 0) do:
  		[:f|
  		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!



More information about the Vm-dev mailing list