equal
deleted
inserted
replaced
26 #define SHARE_VM_OOPS_INSTANCEMIRRORKLASS_HPP |
26 #define SHARE_VM_OOPS_INSTANCEMIRRORKLASS_HPP |
27 |
27 |
28 #include "classfile/systemDictionary.hpp" |
28 #include "classfile/systemDictionary.hpp" |
29 #include "oops/instanceKlass.hpp" |
29 #include "oops/instanceKlass.hpp" |
30 #include "runtime/handles.hpp" |
30 #include "runtime/handles.hpp" |
|
31 #include "utilities/macros.hpp" |
31 |
32 |
32 // An InstanceMirrorKlass is a specialized InstanceKlass for |
33 // An InstanceMirrorKlass is a specialized InstanceKlass for |
33 // java.lang.Class instances. These instances are special because |
34 // java.lang.Class instances. These instances are special because |
34 // they contain the static fields of the class in addition to the |
35 // they contain the static fields of the class in addition to the |
35 // normal fields of Class. This means they are variable sized |
36 // normal fields of Class. This means they are variable sized |
105 int oop_oop_iterate##nv_suffix##_m(oop obj, OopClosureType* blk, MemRegion mr); |
106 int oop_oop_iterate##nv_suffix##_m(oop obj, OopClosureType* blk, MemRegion mr); |
106 |
107 |
107 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceMirrorKlass_OOP_OOP_ITERATE_DECL) |
108 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceMirrorKlass_OOP_OOP_ITERATE_DECL) |
108 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceMirrorKlass_OOP_OOP_ITERATE_DECL) |
109 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceMirrorKlass_OOP_OOP_ITERATE_DECL) |
109 |
110 |
110 #ifndef SERIALGC |
111 #if INCLUDE_ALL_GCS |
111 #define InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL(OopClosureType, nv_suffix) \ |
112 #define InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL(OopClosureType, nv_suffix) \ |
112 int oop_oop_iterate_backwards##nv_suffix(oop obj, OopClosureType* blk); |
113 int oop_oop_iterate_backwards##nv_suffix(oop obj, OopClosureType* blk); |
113 |
114 |
114 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
115 ALL_OOP_OOP_ITERATE_CLOSURES_1(InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
115 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
116 ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceMirrorKlass_OOP_OOP_ITERATE_BACKWARDS_DECL) |
116 #endif // !SERIALGC |
117 #endif // INCLUDE_ALL_GCS |
117 }; |
118 }; |
118 |
119 |
119 #endif // SHARE_VM_OOPS_INSTANCEMIRRORKLASS_HPP |
120 #endif // SHARE_VM_OOPS_INSTANCEMIRRORKLASS_HPP |