< prev index next >
src/share/vm/oops/typeArrayKlass.cpp
Print this page
rev 7183 : autospecialized oop_iterate using SFINAE and templates
*** 224,233 ****
--- 224,240 ----
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::TypeArrayKlass never moves.
return t->object_size();
}
+ int TypeArrayKlass::get_linear_oop_intervals(oop obj, OopInterval* &start, int &size) {
+ assert(obj->is_typeArray(),"must be a type array");
+ typeArrayOop a = typeArrayOop(obj);
+ size = a->object_size();
+ return 0; // there are no oops in here!
+ }
+
int TypeArrayKlass::oop_oop_iterate(oop obj, ExtendedOopClosure* blk) {
assert(obj->is_typeArray(),"must be a type array");
typeArrayOop t = typeArrayOop(obj);
// Performance tweak: We skip iterating over the klass pointer since we
// know that Universe::TypeArrayKlass never moves.
< prev index next >