src/hotspot/share/oops/klass.cpp
changeset 50752 9d62da00bf15
parent 50746 85789fb05154
child 50761 cb07f4b539fc
--- a/src/hotspot/share/oops/klass.cpp	Mon Jun 25 12:44:52 2018 +0200
+++ b/src/hotspot/share/oops/klass.cpp	Sat May 26 06:59:49 2018 +0200
@@ -190,9 +190,10 @@
 // which doesn't zero out the memory before calling the constructor.
 // Need to set the _java_mirror field explicitly to not hit an assert that the field
 // should be NULL before setting it.
-Klass::Klass() : _prototype_header(markOopDesc::prototype()),
-                 _shared_class_path_index(-1),
-                 _java_mirror(NULL) {
+Klass::Klass(KlassID id) : _id(id),
+                           _prototype_header(markOopDesc::prototype()),
+                           _shared_class_path_index(-1),
+                           _java_mirror(NULL) {
   CDS_ONLY(_shared_class_flags = 0;)
   CDS_JAVA_HEAP_ONLY(_archived_mirror = 0;)
   _primary_supers[0] = this;