[Vm-dev] VM Maker: VMMaker.oscog-eem.2491.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 6 23:13:15 UTC 2018


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

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

Name: VMMaker.oscog-eem.2491
Author: eem
Time: 6 December 2018, 3:13:00.371833 pm
UUID: 238ebc4c-0563-4edd-8b14-740ca18594f7
Ancestors: VMMaker.oscog-eem.2490

...and fix the signature of alloca.

=============== Diff against VMMaker.oscog-eem.2490 ===============

Item was changed:
  ----- Method: SerialPlugin>>copyPortNameToCString: (in category 'private-support') -----
  copyPortNameToCString: portName
  	<returnTypeC: #'char *'>
  	| port portNameSize |
  	<inline: #always>
  	<var: 'port' type: #'char *'>
  	portNameSize := interpreterProxy slotSizeOf: (portName asOop: String).
+ 	port := self alloca: portNameSize + 1.
- 	port := self alloca: portNameSize + 1 _: (self sizeof: #char).
  	self memcpy: port _: portName _: portNameSize.
  	port at: portNameSize put: 0.
  	^port!



More information about the Vm-dev mailing list