[squeak-dev] FFI: FFI-Kernel-mt.98.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 6 12:45:58 UTC 2020


Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.98.mcz

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

Name: FFI-Kernel-mt.98
Author: mt
Time: 6 June 2020, 2:45:57.732722 pm
UUID: 994a693c-ec1d-2446-9bc1-c806d965ac2e
Ancestors: FFI-Kernel-mt.97

Fixes an embarrassing typo... ;o)

=============== Diff against FFI-Kernel-mt.97 ===============

Item was changed:
  ----- Method: ExternalStructure class>>compileAllFields (in category 'system startup') -----
  compileAllFields
  	"
  	ExternalStructure compileAllFields
  	"
  	| priorAuthorInitials fieldSpec |
  	priorAuthorInitials := Utilities authorInitialsPerSe.
  	[Utilities setAuthorInitials: 'FFI'.
  	
  		self allStructuresInCompilationOrder do: [:structClass |
  			fieldSpec := structClass fields.
  			self flag: #discuss. "mt: Why do we need that extra layout check? Performance gain is minimal..."
  			(structClass hasFieldLayoutChanged: fieldSpec)
+ 				ifTrue: [structClass compileFieldsSilently: fieldSpec].
- 				ifTrue: [self compileFieldsSilently: fieldSpec].
  			structClass externalType "asNonPointerType"
  				compiledSpec: structClass compiledSpec;
  				byteAlignment: structClass byteAlignment].
  		"Compilation of fields only needs external types temporarily. Non-weak references to external types are only in methods with FFI calls."
  		ExternalType cleanupUnusedTypes.
  
  	] ensure: [Utilities setAuthorInitials: priorAuthorInitials]!



More information about the Squeak-dev mailing list