RFR: JDK-8320890: [AIX] Find a better way to mimic dl handle equality [v8]

Thomas Stuefe stuefe at openjdk.org
Thu Dec 21 11:49:44 UTC 2023


On Thu, 21 Dec 2023 11:23:46 GMT, Joachim Kern <jkern at 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


More information about the serviceability-dev mailing list