equal
deleted
inserted
replaced
26 #define SHARE_VM_OOPS_OBJARRAYKLASS_HPP |
26 #define SHARE_VM_OOPS_OBJARRAYKLASS_HPP |
27 |
27 |
28 #include "classfile/classLoaderData.hpp" |
28 #include "classfile/classLoaderData.hpp" |
29 #include "memory/specialized_oop_closures.hpp" |
29 #include "memory/specialized_oop_closures.hpp" |
30 #include "oops/arrayKlass.hpp" |
30 #include "oops/arrayKlass.hpp" |
|
31 #include "utilities/macros.hpp" |
31 |
32 |
32 // ObjArrayKlass is the klass for objArrays |
33 // ObjArrayKlass is the klass for objArrays |
33 |
34 |
34 class ObjArrayKlass : public ArrayKlass { |
35 class ObjArrayKlass : public ArrayKlass { |
35 friend class VMStructs; |
36 friend class VMStructs; |
109 |
110 |
110 int oop_adjust_pointers(oop obj); |
111 int oop_adjust_pointers(oop obj); |
111 |
112 |
112 // Parallel Scavenge and Parallel Old |
113 // Parallel Scavenge and Parallel Old |
113 PARALLEL_GC_DECLS |
114 PARALLEL_GC_DECLS |
114 #ifndef SERIALGC |
115 #if INCLUDE_ALL_GCS |
115 inline void oop_follow_contents(ParCompactionManager* cm, oop obj, int index); |
116 inline void oop_follow_contents(ParCompactionManager* cm, oop obj, int index); |
116 template <class T> inline void |
117 template <class T> inline void |
117 objarray_follow_contents(ParCompactionManager* cm, oop obj, int index); |
118 objarray_follow_contents(ParCompactionManager* cm, oop obj, int index); |
118 #endif // !SERIALGC |
119 #endif // INCLUDE_ALL_GCS |
119 |
120 |
120 // Iterators |
121 // Iterators |
121 int oop_oop_iterate(oop obj, ExtendedOopClosure* blk) { |
122 int oop_oop_iterate(oop obj, ExtendedOopClosure* blk) { |
122 return oop_oop_iterate_v(obj, blk); |
123 return oop_oop_iterate_v(obj, blk); |
123 } |
124 } |