[squeak-dev] The Trunk: Kernel-mt.1016.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 28 16:18:20 UTC 2016


Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1016.mcz

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

Name: Kernel-mt.1016
Author: mt
Time: 28 April 2016, 6:17:59.607373 pm
UUID: 9f54ad71-44a3-d248-8811-44bd57be0327
Ancestors: Kernel-nice.1015

Fixes a bug in weak message sends where the internal weak array structure for arguments was not put into a real array and hence made the perform-primitive fail.

I suspect an old copy-paste mistake because MessageSend and WeakMessageSend share some code.

=============== Diff against Kernel-nice.1015 ===============

Item was changed:
  ----- Method: WeakMessageSend>>collectArguments: (in category 'private') -----
  collectArguments: anArgArray
  	"Private"
      | staticArgs |
      staticArgs := self arguments.
      ^(anArgArray size = staticArgs size)
          ifTrue: [anArgArray]
          ifFalse:
              [(staticArgs isEmpty
                  ifTrue: [ staticArgs := Array new: selector numArgs]
+                 ifFalse: [Array withAll: staticArgs] )
-                 ifFalse: [staticArgs copy] )
                      replaceFrom: 1
                      to: (anArgArray size min: staticArgs size)
                      with: anArgArray
                      startingAt: 1]
  !



More information about the Squeak-dev mailing list