This is a small fix to make -Xshare:dump and -Xshare:on work with --enable-preview and -XX:+UseCompactObjectHeaders and -Xint.
------------- Commit messages: - 8367375: [lworld] Crash when using CDS archive created with -XX:+UseCompactObjectHeaders and preview mode - 8366794: [lworld] "assert(!is_null(v)) failed: narrow klass value can never be zero" with -Xint and COH Changes: https://git.openjdk.org/valhalla/pull/1577/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1577&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8367375 Stats: 19 lines in 9 files changed: 11 ins; 0 del; 8 mod Patch: https://git.openjdk.org/valhalla/pull/1577.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1577/head:pull/1577 PR: https://git.openjdk.org/valhalla/pull/1577
