Hi folks, This PR addresses [8332785](https://bugs.openjdk.org/browse/JDK-8332785) replacing all naked uses for ```UseSharedSpaces``` with ```CDSConfig::is_using_archive```.
Testing: - [x] Tier 1 with GHA. Thanks, Sonia ------------- Commit messages: - Missed include statement in vmError_windows.cpp - 8332785: Replace naked uses of UseSharedSpaces with CDSConfig::is_using_archive Changes: https://git.openjdk.org/jdk/pull/19463/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19463&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8332785 Stats: 99 lines in 35 files changed: 8 ins; 0 del; 91 mod Patch: https://git.openjdk.org/jdk/pull/19463.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19463/head:pull/19463 PR: https://git.openjdk.org/jdk/pull/19463