RFR: 8353225: Add a way to iterate Klass inside the loaded CDS archive

Thomas Stuefe stuefe at openjdk.org
Wed Apr 2 12:18:56 UTC 2025


On Wed, 2 Apr 2025 12:13:17 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> About the "may never be loaded": That is fine. I rather unnecessarily calculate the KLUT token for a class that will never be used than to pay for "Is this entry initialized?" branch in every use of the KLUT table. The latter is worse, performance-wise.

Plus, the token is stored in the Klass, so it will have been calculated at dumptime, and so the only thing missing is copying the entry to its table position at runtime.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24311#discussion_r2024702813


More information about the hotspot-runtime-dev mailing list