< prev index next >

src/hotspot/share/oops/klass.inline.hpp

Print this page

158 
159 inline bool Klass::search_secondary_supers(Klass *k) const {
160   // This is necessary because I am never in my own secondary_super list.
161   if (this == k)
162     return true;
163 
164   bool result = lookup_secondary_supers_table(k);
165 
166 #ifndef PRODUCT
167   if (VerifySecondarySupers) {
168     bool linear_result = linear_search_secondary_supers(k);
169     if (linear_result != result) {
170       on_secondary_supers_verification_failure((Klass*)this, k, linear_result, result, "mismatch");
171     }
172   }
173 #endif // PRODUCT
174 
175   return result;
176 }
177 




178 #endif // SHARE_OOPS_KLASS_INLINE_HPP

158 
159 inline bool Klass::search_secondary_supers(Klass *k) const {
160   // This is necessary because I am never in my own secondary_super list.
161   if (this == k)
162     return true;
163 
164   bool result = lookup_secondary_supers_table(k);
165 
166 #ifndef PRODUCT
167   if (VerifySecondarySupers) {
168     bool linear_result = linear_search_secondary_supers(k);
169     if (linear_result != result) {
170       on_secondary_supers_verification_failure((Klass*)this, k, linear_result, result, "mismatch");
171     }
172   }
173 #endif // PRODUCT
174 
175   return result;
176 }
177 
178 inline size_t Klass::oop_size(oop obj) const {
179   return oop_size(obj, obj->mark());
180 }
181 
182 #endif // SHARE_OOPS_KLASS_INLINE_HPP
< prev index next >