#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Thu, 17 May 2018 23:30:55 +0200
changeset 4674 519d0604d2bc
parent 4673 9a0b7710fe9d
child 4675 9ff59d8c7f46
#BUGFIX by cg class: CacheDictionary added: #possiblyShrinkToZero BUGFIX: do not drop container when tally drops to 0
CacheDictionary.st
--- a/CacheDictionary.st	Thu May 17 23:12:49 2018 +0200
+++ b/CacheDictionary.st	Thu May 17 23:30:55 2018 +0200
@@ -196,11 +196,23 @@
     ^ self
 
     "Modified: 30.1.1997 / 15:17:12 / cg"
+!
+
+possiblyShrinkToZero
+    "here, we keep the old containers"
+    
+    keyArray atAllPut:nil.
+    valueArray atAllPut:nil.
+    tally := 0.
 ! !
 
 !CacheDictionary class methodsFor:'documentation'!
 
 version
     ^ '$Header$'
+!
+
+version_CVS
+    ^ '$Header$'
 ! !