Skip to content
Permalink
Browse files
8274338: com/sun/jdi/RedefineCrossEvent.java failed "assert(m != __nu…
…ll) failed: NULL mirror"

Reviewed-by: phh
Backport-of: 172aed1a2d75756b140cb723133ac5fb67f7745e
  • Loading branch information
zhengyu123 committed Jan 13, 2022
1 parent 5a3a17b commit 40d7d034a9d123a2f8a16c374f6c4f6fb7954173
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/hotspot/share/oops/instanceKlass.cpp
@@ -2367,6 +2367,9 @@ void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handl
constants()->restore_unshareable_info(CHECK);

if (array_klasses() != NULL) {
// To get a consistent list of classes we need MultiArray_lock to ensure
// array classes aren't observed while they are being restored.
MutexLocker ml(MultiArray_lock);
// Array classes have null protection domain.
// --> see ArrayKlass::complete_create_array_klass()
array_klasses()->restore_unshareable_info(ClassLoaderData::the_null_class_loader_data(), Handle(), CHECK);

1 comment on commit 40d7d03

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 40d7d03 Jan 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.