[Pkg] The Trunk: Kernel-dtl.1055.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Feb 2 01:46:09 UTC 2017

David T. Lewis uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-dtl.1055
Author: dtl
Time: 2 February 2017, 1:46:01.637724 am
UUID: 72bb2b4b-bdd2-4057-a312-e26db93d0245
Ancestors: Kernel-nice.1054, Kernel-cbc.1054

Merge Kernel-nice.1054, Kernel-cbc.1054

=============== Diff against Kernel-nice.1054 ===============

Item was changed:
  ----- Method: Behavior>>basicNew: (in category 'instance creation') -----
  basicNew: sizeRequested
  	"Primitive. Answer an instance of this class with the number of indexable
  	 variables specified by the argument, sizeRequested.  Fail if this class is not
  	 indexable or if the argument is not a positive Integer, or if there is not
  	 enough memory available. Essential. See Object documentation whatIsAPrimitive.
  	 If the primitive fails because space is low then the scavenger will run before the
  	 method is activated.  Check args and retry via handleFailingBasicNew: if they're OK."
  	<primitive: 71 error: ec>
+ 	(ec == #'insufficient object memory') ifTrue:
- 	(ec == #'insufficient object memory' or: [ec == #'bad argument']) ifTrue:
  		[^self handleFailingBasicNew: sizeRequested].
+ 	(ec == #'bad argument') ifTrue:
+ 		[self error: self printString, ' called #basicNew: with invalid arugment ', sizeRequested].
  	self isVariable ifFalse:
  		[self error: self printString, ' cannot have variable sized instances'].
  	self primitiveFailed!

More information about the Packages mailing list