On Thu, 21 Dec 2023 11:23:46 GMT, Joachim Kern <jk...@openjdk.org> wrote:

>> I don't like introducing unnecessary limitations. Are we sure nobody will 
>> ever need more than 1024 handles?
>> Can't we at least use a GrowableArray or something like that?
>
> In principle you are right, but in my opinion 1024 is an academical limit. I 
> never saw processes with more than a few dozen loaded libraries.

Dynamic allocation also opens us up to potential initialization issues, unless 
we explicitly use raw ::malloc. It should work, but I think its better avoided 
unless we really need it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16920#discussion_r1433963889

Reply via email to