< prev index next >

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

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP
  26 #define SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP
  27 
  28 #include "runtime/orderAccess.inline.hpp"
  29 #include "oops/arrayKlass.hpp"
  30 
  31 inline Klass* ArrayKlass::higher_dimension_acquire() const {
  32   return (Klass*) OrderAccess::load_ptr_acquire(&_higher_dimension);
  33 }
  34 
  35 inline void ArrayKlass::release_set_higher_dimension(Klass* k) {
  36   OrderAccess::release_store_ptr(&_higher_dimension, k);
  37 }
  38 
  39 #endif // SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP


  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP
  26 #define SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP
  27 
  28 #include "runtime/orderAccess.inline.hpp"
  29 #include "oops/arrayKlass.hpp"
  30 
  31 inline Klass* ArrayKlass::higher_dimension_acquire() const {
  32   return OrderAccess::load_acquire(&_higher_dimension);
  33 }
  34 
  35 inline void ArrayKlass::release_set_higher_dimension(Klass* k) {
  36   OrderAccess::release_store(&_higher_dimension, k);
  37 }
  38 
  39 #endif // SHARE_VM_OOPS_ARRAYKLASS_INLINE_HPP
< prev index next >