src/hotspot/share/classfile/systemDictionary.cpp
changeset 58260 704e4ff399a2
parent 58177 4932dce35882
child 58261 01c5971b0a2c
--- a/src/hotspot/share/classfile/systemDictionary.cpp	Sat Sep 21 10:13:25 2019 -0400
+++ b/src/hotspot/share/classfile/systemDictionary.cpp	Sun Sep 22 17:16:35 2019 -0700
@@ -1270,6 +1270,7 @@
                                                    TRAPS) {
 
   if (ik != NULL) {
+    assert(!ik->is_unshareable_info_restored(), "shared class can be loaded only once");
     Symbol* class_name = ik->name();
 
     bool visible = is_shared_class_visible(