[Pkg] The Trunk: System-nice.595.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Sep 22 12:19:47 UTC 2013

Nicolas Cellier uploaded a new version of System to project The Trunk:

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

Name: System-nice.595
Author: nice
Time: 22 September 2013, 2:18:14.523 pm
UUID: 38f678e7-50a4-4d4e-8636-396638075978
Ancestors: System-fbs.594

Remove an unimplemented send of #signalFrom:to:
Don't use DomainError in this context, it should better be restricted for mathematical function.
This is because having a too broad usage of an Exception makes its handling impracticle
For example:
    someBlock on: DomainError do: [:exc | exc return: Float nan]
sounds legitimate, but wouldn't really work if DomainError is raised for any parameter having a restricted domain.

=============== Diff against System-fbs.594 ===============

Item was changed:
  ----- Method: SmalltalkImage>>maxExternalSemaphores: (in category 'vm parameters') -----
  maxExternalSemaphores: aSize
  	"Changes the size of table where external semaphores are registered. 
  	The size can only grow, and will always be the next power of two larger than the parameter.
  	Setting this at any time other than start-up can potentially lose requests.
+ 	 i.e. during the realloc new storage is allocated,
+ 	the old contents are copied and then pointers are switched. 
- 	 i.e. during the realloc new storage is allocated, t
- 	he old contents are copied and then pointers are switched. 
  	 Requests occurring during copying won't be seen if they occur to indices already copied. 
  	The intended use is to set the table to some adequate maximum at start-up"
  	self isRunningCog ifFalse: [^0].
  	"The vm-header field is a short, maximum 64k entries. Well, on most platforms anyways "
+ 	(aSize < 0 or: [aSize > 16rFFFF]) ifTrue: [^self error: 'maxExternalSemaphores: is limited to 16rFFFF'].
- 	(aSize < 0 or: [aSize > 16rFFFF]) ifTrue: [^DomainError signalFrom: 0 to: 16rFFFF].
  	^self vmParameterAt: 49 put: aSize!

More information about the Packages mailing list