< prev index next >

src/hotspot/share/oops/objArrayKlass.cpp

Print this page
@@ -336,10 +336,15 @@
      return secondaries;
    }
  }
  
  void ObjArrayKlass::initialize(TRAPS) {
+   if (RecordTraining && bottom_klass()->is_instance_klass()) {
+     InstanceKlass* bk = InstanceKlass::cast(bottom_klass());
+     bk->record_initialization_touch("array", nullptr, nullptr,
+                                     this, nullptr, CHECK);
+   }
    bottom_klass()->initialize(THREAD);  // dispatches to either InstanceKlass or TypeArrayKlass
  }
  
  void ObjArrayKlass::metaspace_pointers_do(MetaspaceClosure* it) {
    ArrayKlass::metaspace_pointers_do(it);
< prev index next >