< prev index next >

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

Print this page
@@ -49,6 +49,12 @@
    assert(is_within_bounds(index), "index %d out of bounds %d", index, length());
    ptrdiff_t offset = UseCompressedOops ? obj_at_offset<narrowOop>(index) : obj_at_offset<oop>(index);
    HeapAccess<IS_ARRAY>::oop_store_at(as_oop(), offset, value);
  }
  
+ template <DecoratorSet ds>
+ inline void objArrayOopDesc::obj_at_put_access(int index, oop value) {
+   ptrdiff_t offset = UseCompressedOops ? obj_at_offset<narrowOop>(index) : obj_at_offset<oop>(index);
+   HeapAccess<IS_ARRAY | ds>::oop_store_at(as_oop(), offset, value);
+ }
+ 
  #endif // SHARE_OOPS_OBJARRAYOOP_INLINE_HPP
< prev index next >