< prev index next >

src/hotspot/share/memory/metaspace/printMetaspaceInfoKlassClosure.cpp

Print this page
rev 50565 : [mq]: 8203343-VM.metaspace-show-reflection-invocation-targets

@@ -22,17 +22,13 @@
  * questions.
  *
  */
 #include "precompiled.hpp"
 
-#include "classfile/systemDictionary.hpp"
 #include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp"
 #include "memory/resourceArea.hpp"
-#include "oops/constantPool.inline.hpp"
-#include "oops/instanceKlass.hpp"
-#include "oops/klass.hpp"
-#include "utilities/constantTag.hpp"
+#include "oops/reflectionAccessorImplKlassHelper.hpp"
 #include "utilities/globalDefinitions.hpp"
 #include "utilities/ostream.hpp"
 
 
 namespace metaspace {

@@ -52,9 +48,17 @@
   if (_do_print) {
     _out->cr_indent();
     _out->print(UINTX_FORMAT_W(4) ": ", _num_classes);
     ResourceMark rm;
     _out->print("%s", k->external_name());
+
+    // Special treatment for generated core reflection accessor classes: print invocation target.
+    if (ReflectionAccessorImplKlassHelper::is_generated_accessor(k)) {
+      _out->print(" (invokes: ");
+      ReflectionAccessorImplKlassHelper::print_invocation_target(_out, k);
+      _out->print(")");
+    }
+
   }
 }
 
 } // namespace metaspace
< prev index next >