RFR: 8335583: Avoid using pointers in CDS tables
Matias Saavedra Silva
matsaave at openjdk.org
Fri Nov 1 18:07:39 UTC 2024
There are several calls to mark_pointer which can be avoided if offsets are used instead, This will help to reduce the archive size and reduce startup time.
This patch introduces some utility functions in the first commit to assist in converting to and from u4 offsets. For ease of review, consider looking at each commit separately as they each address an individual pointer to offset change. Verified with tier 1-5 tests.
-------------
Commit messages:
- Cleanup
- Replaced lambdaProxyClassKey
- Replaced static_archive_invokers
- Replaced runTimeClassInfo nest_host
- Replaced runTimeClassInfo klass
- Avoid using pointers in CDS tables
Changes: https://git.openjdk.org/jdk/pull/21837/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21837&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8335583
Stats: 231 lines in 11 files changed: 162 ins; 19 del; 50 mod
Patch: https://git.openjdk.org/jdk/pull/21837.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21837/head:pull/21837
PR: https://git.openjdk.org/jdk/pull/21837
More information about the hotspot-runtime-dev
mailing list