Mercurial > hg > truffle
comparison src/share/vm/oops/objArrayOop.hpp @ 4137:04b9a2566eec
Merge with hsx23/hotspot.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 17 Dec 2011 21:40:27 +0100 |
parents | dc467e8b2c5e |
children | d8ce2825b193 |
comparison
equal
deleted
inserted
replaced
3737:9dc19b7d89a3 | 4137:04b9a2566eec |
---|---|
32 | 32 |
33 class objArrayOopDesc : public arrayOopDesc { | 33 class objArrayOopDesc : public arrayOopDesc { |
34 friend class objArrayKlass; | 34 friend class objArrayKlass; |
35 friend class Runtime1; | 35 friend class Runtime1; |
36 friend class psPromotionManager; | 36 friend class psPromotionManager; |
37 friend class CSMarkOopClosure; | 37 friend class CSetMarkOopClosure; |
38 friend class G1ParScanPartialArrayClosure; | 38 friend class G1ParScanPartialArrayClosure; |
39 | 39 |
40 template <class T> T* obj_at_addr(int index) const { | 40 template <class T> T* obj_at_addr(int index) const { |
41 assert(is_within_bounds(index), "index out of bounds"); | 41 assert(is_within_bounds(index), "index out of bounds"); |
42 return &((T*)base())[index]; | 42 return &((T*)base())[index]; |