j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
The current LowSpaceWatcher just alerts the user. This is not useful for servers or for situations when objects are cached and should be discarded when space becomes tight. I have now generalized the mechanism used in my MailArchiver (http://macos.tuwien.ac.at/Squeak/mailArchiver.html).
As an example setup is now:
Smalltalk memoryHogs add: ArchivedMail
When space is low #freeSomeSpace gets sent:
ArchivedMail>freeSomeSpace "Remove all cached text from my instances." self allInstancesDo: [ :m | m purgeText ]
If freeSomeSpace fails to free enough memory - maybe because no memoryHogs have been registered - the old behavior (alert the user) is invoked.
Georg
---- Dipl.Ing. Georg Gollmann TU-Wien, Zentraler Informatikdienst Wiedner Hauptstr. 8-10 phon:(+43-1) 58801 - 42022 A-1040 Wien fax: (+43-1) 58801 - 42099 mail:gollmann@zid.tuwien.ac.at http://macos.tuwien.ac.at/Gollmann.html
Attachments:
squeak-dev@lists.squeakfoundation.org