< prev index next >

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

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


  23  *
  24  */
  25 
  26 #ifndef SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_
  27 #define SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_
  28 
  29 #include "memory/iterator.hpp"
  30 #include "utilities/globalDefinitions.hpp"
  31 
  32 class outputStream;
  33 class InstanceKlass;
  34 
  35 namespace metaspace {
  36 
  37 // Helper class for MetaspaceUtils::print_report()
  38 class PrintMetaspaceInfoKlassClosure : public KlassClosure {
  39 private:
  40   outputStream* const _out;
  41   const bool          _do_print;
  42 


  43 public:

  44   uintx _num_classes;
  45   uintx _num_instance_classes;
  46   uintx _num_array_classes;
  47 
  48   PrintMetaspaceInfoKlassClosure(outputStream* out, bool do_print);
  49   void do_klass(Klass* k);
  50 
  51 }; // end: PrintKlassInfoClosure
  52 
  53 } // namespace metaspace
  54 
  55 #endif /* SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_ */


  23  *
  24  */
  25 
  26 #ifndef SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_
  27 #define SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_
  28 
  29 #include "memory/iterator.hpp"
  30 #include "utilities/globalDefinitions.hpp"
  31 
  32 class outputStream;
  33 class InstanceKlass;
  34 
  35 namespace metaspace {
  36 
  37 // Helper class for MetaspaceUtils::print_report()
  38 class PrintMetaspaceInfoKlassClosure : public KlassClosure {
  39 private:
  40   outputStream* const _out;
  41   const bool          _do_print;
  42 
  43   bool print_reflection_invocation_target(outputStream* out, InstanceKlass* magic_accessor_impl_class);
  44 
  45 public:
  46 
  47   uintx _num_classes;
  48   uintx _num_instance_classes;
  49   uintx _num_array_classes;
  50 
  51   PrintMetaspaceInfoKlassClosure(outputStream* out, bool do_print);
  52   void do_klass(Klass* k);
  53 
  54 }; // end: PrintKlassInfoClosure
  55 
  56 } // namespace metaspace
  57 
  58 #endif /* SHARE_MEMORY_METASPACE_PRINTMETASPACEINFOKLASSCLOSURE_HPP_ */
< prev index next >