[squeak-dev] The Trunk: Exceptions-ar.16.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Dec 4 22:11:58 UTC 2009


Andreas Raab uploaded a new version of Exceptions to project The Trunk:
http://source.squeak.org/trunk/Exceptions-ar.16.mcz

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

Name: Exceptions-ar.16
Author: ar
Time: 4 December 2009, 2:11:49 am
UUID: e454a297-a989-e544-ba10-c31cf99ae2aa
Ancestors: Exceptions-jcg.15

Adds OutOfMemory a standard exception signaled when the system is running out of memory. By default it calls signalLowSpace but since it is a subclass of error it will trigger proper exception handling in production environments (this avoids notifiers popping up on a server because an ill-formed request attempts to allocate a huge amount of memory).

=============== Diff against Exceptions-jcg.15 ===============

Item was added:
+ Error subclass: #OutOfMemory
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'Exceptions-Kernel'!
+ 
+ !OutOfMemory commentStamp: '<historical>' prior: 0!
+ OutOfMemory is signaled when an allocation fails due to not having enough memory. Its default action signals the low-space semaphore.!

Item was added:
+ ----- Method: OutOfMemory>>defaultAction (in category 'as yet unclassified') -----
+ defaultAction
+ 	Smalltalk signalLowSpace.!

Item was added:
+ ----- Method: OutOfMemory>>isResumable (in category 'as yet unclassified') -----
+ isResumable
+ 	^true!




More information about the Squeak-dev mailing list