< prev index next >

src/share/vm/oops/objArrayOop.hpp

Print this page
rev 7800 : [mq]: cleanupOopInlineHpp

*** 76,94 **** // base is the address following the header. HeapWord* base() const { return (HeapWord*) arrayOopDesc::base(T_OBJECT); } // Accessing ! oop obj_at(int index) const { ! // With UseCompressedOops decode the narrow oop in the objArray to an ! // uncompressed oop. Otherwise this is simply a "*" operator. ! if (UseCompressedOops) { ! return load_decode_heap_oop(obj_at_addr<narrowOop>(index)); ! } else { ! return load_decode_heap_oop(obj_at_addr<oop>(index)); ! } ! } void obj_at_put(int index, oop value) { if (UseCompressedOops) { oop_store(obj_at_addr<narrowOop>(index), value); } else { --- 76,86 ---- // base is the address following the header. HeapWord* base() const { return (HeapWord*) arrayOopDesc::base(T_OBJECT); } // Accessing ! oop obj_at(int index) const; void obj_at_put(int index, oop value) { if (UseCompressedOops) { oop_store(obj_at_addr<narrowOop>(index), value); } else {
< prev index next >