8240267: VM fails to start with CDS enabled but JVMTI disabled

Reviewed-by: dholmes
This commit is contained in:
Ioi Lam 2020-03-01 17:36:03 -08:00
parent 742bdf003e
commit 0532bd23cd
2 changed files with 5 additions and 5 deletions

View file

@ -2070,8 +2070,8 @@ void SystemDictionary::resolve_well_known_classes(TRAPS) {
#ifdef ASSERT
if (UseSharedSpaces) {
assert(JvmtiExport::is_early_phase(),
"All well known classes must be resolved in JVMTI early phase");
JVMTI_ONLY(assert(JvmtiExport::is_early_phase(),
"All well known classes must be resolved in JVMTI early phase"));
for (int i = FIRST_WKID; i < last; i++) {
InstanceKlass* k = _well_known_klasses[i];
assert(k->is_shared(), "must not be replaced by JVMTI class file load hook");