< prev index next >

src/hotspot/share/oops/instanceClassLoaderKlass.hpp

Print this page

33 // An InstanceClassLoaderKlass is a specialization of the InstanceKlass. It does
34 // not add any field.  It is added to walk the dependencies for the class loader
35 // key that this class loader points to.  This is how the loader_data graph is
36 // walked and dependent class loaders are kept alive.  I thought we walked
37 // the list later?
38 
39 class InstanceClassLoaderKlass: public InstanceKlass {
40   friend class VMStructs;
41   friend class InstanceKlass;
42 public:
43   static const KlassID ID = InstanceClassLoaderKlassID;
44 
45 private:
46   InstanceClassLoaderKlass(const ClassFileParser& parser) : InstanceKlass(parser, InstanceKlass::_kind_class_loader, ID) {}
47 
48 public:
49   InstanceClassLoaderKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
50 
51   // Oop fields (and metadata) iterators
52   //
53   // The InstanceClassLoaderKlass iterators also visit the CLD pointer (or mirror of hidden klasses.)
54 
55   // Forward iteration
56   // Iterate over the oop fields and metadata.
57   template <typename T, class OopClosureType>
58   inline void oop_oop_iterate(oop obj, OopClosureType* closure);
59 
60   // Reverse iteration
61   // Iterate over the oop fields and metadata.
62   template <typename T, class OopClosureType>
63   inline void oop_oop_iterate_reverse(oop obj, OopClosureType* closure);
64 
65   // Bounded range iteration
66   // Iterate over the oop fields and metadata.
67   template <typename T, class OopClosureType>
68   inline void oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
69 };
70 
71 #endif // SHARE_OOPS_INSTANCECLASSLOADERKLASS_HPP

33 // An InstanceClassLoaderKlass is a specialization of the InstanceKlass. It does
34 // not add any field.  It is added to walk the dependencies for the class loader
35 // key that this class loader points to.  This is how the loader_data graph is
36 // walked and dependent class loaders are kept alive.  I thought we walked
37 // the list later?
38 
39 class InstanceClassLoaderKlass: public InstanceKlass {
40   friend class VMStructs;
41   friend class InstanceKlass;
42 public:
43   static const KlassID ID = InstanceClassLoaderKlassID;
44 
45 private:
46   InstanceClassLoaderKlass(const ClassFileParser& parser) : InstanceKlass(parser, InstanceKlass::_kind_class_loader, ID) {}
47 
48 public:
49   InstanceClassLoaderKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
50 
51   // Oop fields (and metadata) iterators
52   //

53 
54   // Forward iteration
55   // Iterate over the oop fields and metadata.
56   template <typename T, class OopClosureType>
57   inline void oop_oop_iterate(oop obj, OopClosureType* closure);
58 
59   // Reverse iteration
60   // Iterate over the oop fields and metadata.
61   template <typename T, class OopClosureType>
62   inline void oop_oop_iterate_reverse(oop obj, OopClosureType* closure);
63 
64   // Bounded range iteration
65   // Iterate over the oop fields and metadata.
66   template <typename T, class OopClosureType>
67   inline void oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr);
68 };
69 
70 #endif // SHARE_OOPS_INSTANCECLASSLOADERKLASS_HPP
< prev index next >