|
32 | 32 | #include "classfile/stackMapTableFormat.hpp"
|
33 | 33 | #include "classfile/symbolTable.hpp"
|
34 | 34 | #include "classfile/systemDictionary.hpp"
|
35 |
| -#include "classfile/systemDictionaryShared.hpp" |
36 | 35 | #include "classfile/verifier.hpp"
|
37 | 36 | #include "classfile/vmClasses.hpp"
|
38 | 37 | #include "classfile/vmSymbols.hpp"
|
|
61 | 60 | #include "services/threadService.hpp"
|
62 | 61 | #include "utilities/align.hpp"
|
63 | 62 | #include "utilities/bytes.hpp"
|
| 63 | +#if INCLUDE_CDS |
| 64 | +#include "classfile/systemDictionaryShared.hpp" |
| 65 | +#endif |
64 | 66 |
|
65 | 67 | #define NOFAILOVER_MAJOR_VERSION 51
|
66 | 68 | #define NONZERO_PADDING_BYTES_IN_SWITCH_MAJOR_VERSION 51
|
@@ -235,11 +237,13 @@ bool Verifier::verify(InstanceKlass* klass, bool should_verify_class, TRAPS) {
|
235 | 237 | exception_name == vmSymbols::java_lang_ClassFormatError())) {
|
236 | 238 | log_info(verification)("Fail over class verification to old verifier for: %s", klass->external_name());
|
237 | 239 | log_info(class, init)("Fail over class verification to old verifier for: %s", klass->external_name());
|
| 240 | +#if INCLUDE_CDS |
238 | 241 | // Exclude any classes that fail over during dynamic dumping
|
239 | 242 | if (CDSConfig::is_dumping_dynamic_archive()) {
|
240 | 243 | SystemDictionaryShared::warn_excluded(klass, "Failed over class verification while dynamic dumping");
|
241 | 244 | SystemDictionaryShared::set_excluded(klass);
|
242 | 245 | }
|
| 246 | +#endif |
243 | 247 | message_buffer = NEW_RESOURCE_ARRAY(char, message_buffer_len);
|
244 | 248 | exception_message = message_buffer;
|
245 | 249 | exception_name = inference_verify(
|
|
0 commit comments