RFR: 8304484: CDS dynamic dumping incorrectly leads to "Error occurred during initialization of VM"

Matias Saavedra Silva matsaave at openjdk.org
Fri Jul 5 15:14:00 UTC 2024


When a non-empty directory is found in the shared path table, the follow error is emitted:
 ```
Error occurred during initialization of VM
 Cannot have non-empty directory in paths


While this makes sense for static dumping, which occurs during initialization, it is not true for a dynamic dump. To remove confusion, path failures exit with `vm_exit_during_cds_dumping`. Verified with tier 1-5 tests.

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

Commit messages:
 - Merge branch 'master' into dynamic_dump_exit_8304484
 - 8304484: CDS dynamic dumping incorrectly leads to "Error occurred during initialization of VM"

Changes: https://git.openjdk.org/jdk/pull/20014/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20014&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8304484
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20014.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20014/head:pull/20014

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


More information about the hotspot-runtime-dev mailing list