Resolve `CONSTANT_MethodRef` entries during CDS dump time to improve start-up 
performance.

- This PR uses the same framework introduced in #19355 and just added handling 
for methods.
- More filtering is needed when building the default archive in the JDK: 
constant pool resolution when running the 
`build.tools.classlist.HelloClasslist` program is not deterministic (due to 
concurrency in core library classes). This could cause different values in the 
`@cp` lines in the classlist file. The benefit of pre-resolved constant pool 
entries is more visible for custom archives and not so much for the default 
archive in the JDK, so we disable this optimization for the default CDS 
archive, until we can find a way to make it deterministic.

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

Commit messages:
 - Fixed whitespaces
 - 8309634: Resolve CONSTANT_MethodRef at CDS dump time

Changes: https://git.openjdk.org/jdk/pull/19866/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19866&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8309634
  Stats: 355 lines in 14 files changed: 311 ins; 8 del; 36 mod
  Patch: https://git.openjdk.org/jdk/pull/19866.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19866/head:pull/19866

PR: https://git.openjdk.org/jdk/pull/19866

Reply via email to