mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8240267: VM fails to start with CDS enabled but JVMTI disabled
Reviewed-by: dholmes
This commit is contained in:
parent
742bdf003e
commit
0532bd23cd
2 changed files with 5 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue