Skip to content

Commit 498a582

Browse files
Matias Saavedra Silvajaikiran
authored andcommitted
8311208: Improve CDS Support
Reviewed-by: rhalade, mschoene, ccheung, iklam
1 parent cfa25b7 commit 498a582

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/share/classfile/verifier.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "classfile/stackMapTableFormat.hpp"
3333
#include "classfile/symbolTable.hpp"
3434
#include "classfile/systemDictionary.hpp"
35+
#include "classfile/systemDictionaryShared.hpp"
3536
#include "classfile/verifier.hpp"
3637
#include "classfile/vmClasses.hpp"
3738
#include "classfile/vmSymbols.hpp"
@@ -212,6 +213,11 @@ bool Verifier::verify(InstanceKlass* klass, bool should_verify_class, TRAPS) {
212213
exception_name == vmSymbols::java_lang_ClassFormatError())) {
213214
log_info(verification)("Fail over class verification to old verifier for: %s", klass->external_name());
214215
log_info(class, init)("Fail over class verification to old verifier for: %s", klass->external_name());
216+
// Exclude any classes that fail over during dynamic dumping
217+
if (CDSConfig::is_dumping_dynamic_archive()) {
218+
SystemDictionaryShared::warn_excluded(klass, "Failed over class verification while dynamic dumping");
219+
SystemDictionaryShared::set_excluded(klass);
220+
}
215221
message_buffer = NEW_RESOURCE_ARRAY(char, message_buffer_len);
216222
exception_message = message_buffer;
217223
exception_name = inference_verify(

0 commit comments

Comments
 (0)