ABCL v1.8.0 | Hash table size is set to 11 despite :size being set to lower number
Johnny Ruiz <[email protected]> Tue, 29 Mar 2022 22:34:56 -0500
| Newsgroups | gmane.editors.j.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, This is to report a possible bug in ABCL v1.8.0. When I create a new hash table and pass an initial size of a number lower then 11 (e.g., 7), the function hash-table-size reports the size as 11 instead of the provided size. $ abcl --noinit Armed Bear Common Lisp 1.8.0 Java 18 Homebrew OpenJDK 64-Bit Server VM Low-level initialization completed in 0.092 seconds. Startup completed in 0.471 seconds. Type ":help" for a list of available commands. CL-USER(1): (defparameter *hash-table* (make-hash-table :size 7)) *HASH-TABLE* CL-USER(2): (hash-table-size *hash-table*) 11 CL-USER(3): As long as :size is 11 or higher, then hash-table-size reports the expected size. CL-USER(3): (defparameter *larger-hash-table* (make-hash-table :size 42)) *LARGER-HASH-TABLE* CL-USER(4): (hash-table-size *larger-hash-table*) 42 Is this a known issue? Reference: https://github.com/jeko2000/synchronized-hash-tables/issues/3 -- Thank you, Johnny Ruiz