[squeak-dev] The Trunk: Kernel-ul.662.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Dec 21 03:31:31 UTC 2011
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.662.mcz
==================== Summary ====================
Name: Kernel-ul.662
Author: ul
Time: 21 December 2011, 4:26:32.078 am
UUID: daeab859-78f8-5249-8495-57902d12d835
Ancestors: Kernel-laza.661
- fix: even empty MethodDictionaries should have one slot
=============== Diff against Kernel-laza.661 ===============
Item was changed:
----- Method: MethodDictionary class>>sizeFor: (in category 'sizing') -----
sizeFor: numberOfElements
"Return the minimum capacity of a dictionary that can hold numberOfElements elements. At least 25% of the array must be empty and the return value must be a power of 2."
+ ^(numberOfElements * 4 // 3) asLargerPowerOfTwo max: 1!
- ^(numberOfElements * 4 // 3) asLargerPowerOfTwo!
More information about the Squeak-dev
mailing list
|