That is now clear. Thank you.<br /><br />--<br />Johnny Ruiz<br /><br />30.03.2022, 11:48, "Rudi Schlatte" <rudi@constantly.at>:<br /><blockquote><div class="" style="word-wrap:break-word">Check the specification at <a class="" href="http://clhs.lisp.se/Body/f_mk_has.htm">http://clhs.lisp.se/Body/f_mk_has.htm</a><div class=""><br class="" /></div><div class="">Specifically,</div><div class=""><p class="" style="font-family:'-webkit-standard'"><i class="">size</i> is a hint to the <a class="" href="http://clhs.lisp.se/Body/26_glo_i.htm#implementation"><i class="">implementation</i></a> about how much initial space to allocate in the <i class="">hash-table</i>. This information, taken together with the <i class="">rehash-threshold</i>, controls the approximate number of entries which it should be possible to insert before the table has to grow. The actual size might be rounded up from <i class="">size</i> to the next `good' size; for example, some <a class="" href="http://clhs.lisp.se/Body/26_glo_i.htm#implementation"><i class="">implementations</i></a> might round to the next prime number. </p><div class="">So I’d say it is not a bug.</div><div><br class="" /><blockquote class=""><div class="">On 30 Mar 2022, at 05:34, Johnny Ruiz <<a class="" href="mailto:jeko2000@yandex.com">jeko2000@yandex.com</a>> wrote:</div><br class="34bd394265c9c48ce7af3175baf9655dApple-interchange-newline" /><div class=""><div class=""><span class="" style="font-size:12px;line-height:18px">Hello,</span></div><div class=""> </div><div class=""><span class="" style="font-size:12px;line-height:18px">This is to report a possible bug in ABCL v1.8.0.</span></div><div class=""><span class="" style="font-size:12px;line-height:18px">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.</span></div><div class=""> </div><div class=""><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">$ abcl --noinit  </div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">Armed Bear Common Lisp 1.8.0</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">Java 18 Homebrew</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">OpenJDK 64-Bit Server VM</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">Low-level initialization completed in 0.092 seconds.</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">Startup completed in 0.471 seconds.</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">Type ":help" for a list of available commands.</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">CL-USER(1): (defparameter *hash-table* (make-hash-table :size 7))</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">*HASH-TABLE*</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">CL-USER(2): (hash-table-size *hash-table*)</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">11</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">CL-USER(3):</div><p class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px"> </p><div class=""><div class=""><span class="" style="font-size:12px;line-height:18px">As long as :size is 11 or higher, then hash-table-size reports the expected size.</span></div><div class=""> </div><div class=""><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">CL-USER(3): (defparameter *larger-hash-table* (make-hash-table :size 42))</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">*LARGER-HASH-TABLE*</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">CL-USER(4): (hash-table-size *larger-hash-table*)</div><div class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px">42</div><div class=""><p class="" style="font-family:'menlo';font-size:11px;line-height:normal;margin:0px"> </p><div class=""><div class=""><span class="" style="font-size:12px;line-height:18px">Is this a known issue?</span></div><div class=""><span class="" style="font-size:12px;line-height:18px">Reference: <a class="" href="https://github.com/jeko2000/synchronized-hash-tables/issues/3" rel="noopener noreferrer" target="_blank">https://github.com/jeko2000/synchronized-hash-tables/issues/3</a></span></div><div class=""><span class="" style="font-size:12px;line-height:18px">-- </span></div><div class=""><span class="" style="font-size:12px;line-height:18px">Thank you,</span></div><div class=""><span class="" style="font-size:12px;line-height:18px">Johnny Ruiz</span></div></div></div></div></div></div></div></blockquote></div><br class="" /></div></div></blockquote>