RFR: 8240254: Build is broken when cds is disabled after JDK-8236604

jiefu(傅杰) jiefu at tencent.com
Sat Feb 29 01:06:22 UTC 2020


Hi all,

JBS: https://bugs.openjdk.java.net/browse/JDK-8240254

Build is broken when cds is disabled.

It might be fixed by
------------------------------------
diff -r f227e770495f src/hotspot/share/classfile/systemDictionary.cpp
--- a/src/hotspot/share/classfile/systemDictionary.cpp  Fri Feb 28 15:30:29 2020 -0800
+++ b/src/hotspot/share/classfile/systemDictionary.cpp  Sat Feb 29 08:42:41 2020 +0800
@@ -1941,7 +1941,9 @@
   }

   klass->restore_unshareable_info(loader_data, domain, THREAD);
+#if INCLUDE_CDS
   load_shared_class_misc(klass, loader_data, CHECK);
+#endif
   Dictionary* dictionary = loader_data->dictionary();
   unsigned int hash = dictionary->compute_hash(klass->name());
   dictionary->add_klass(hash, klass->name(), klass);
------------------------------------

Could you please review it and give me some advice?

Thanks a lot.
Best regards,
Jie



More information about the hotspot-runtime-dev mailing list