RFR: 8351689: -Xshare:dump with default classlist fails on static JDK [v2]

Jiangli Zhou jiangli at openjdk.org
Thu Mar 13 23:36:40 UTC 2025


> Please review the change to use `Arguments::get_java_home` to resolve the default classlist path. This avoids the complication of walking up the directory from libjvm and the subtle handling for '/lib' dir, which is what `MetaspaceShared::get_default_classlist` needs to do. This fixes the failure on static JDK for running `-Xshare:dump` with the default classlist. Please see more details in https://bugs.openjdk.org/browse/JDK-8351689.

Jiangli Zhou has updated the pull request incrementally with one additional commit since the last revision:

  Address iklam's comment:
  - Use get_default_classlist helper function.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24000/files
  - new: https://git.openjdk.org/jdk/pull/24000/files/cdb6b68b..92d3a880

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24000&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24000&range=00-01

  Stats: 13 lines in 2 files changed: 7 ins; 4 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/24000.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24000/head:pull/24000

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


More information about the hotspot-runtime-dev mailing list