< prev index next >

src/hotspot/share/oops/instanceKlass.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_INSTANCEKLASS_INLINE_HPP
  26 #define SHARE_VM_OOPS_INSTANCEKLASS_INLINE_HPP
  27 
  28 #include "memory/iterator.hpp"
  29 #include "oops/instanceKlass.hpp"
  30 #include "oops/klass.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "runtime/orderAccess.inline.hpp"
  33 #include "utilities/debug.hpp"
  34 #include "utilities/globalDefinitions.hpp"
  35 #include "utilities/macros.hpp"
  36 
  37 inline Klass* InstanceKlass::array_klasses_acquire() const {
  38   return OrderAccess::load_acquire(&_array_klasses);
  39 }
  40 
  41 inline void InstanceKlass::release_set_array_klasses(Klass* k) {
  42   OrderAccess::release_store(&_array_klasses, k);
  43 }
  44 
  45 inline jmethodID* InstanceKlass::methods_jmethod_ids_acquire() const {
  46   return OrderAccess::load_acquire(&_methods_jmethod_ids);
  47 }
  48 
  49 inline void InstanceKlass::release_set_methods_jmethod_ids(jmethodID* jmeths) {
  50   OrderAccess::release_store(&_methods_jmethod_ids, jmeths);
  51 }
  52 




  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_INSTANCEKLASS_INLINE_HPP
  26 #define SHARE_VM_OOPS_INSTANCEKLASS_INLINE_HPP
  27 
  28 #include "memory/iterator.hpp"
  29 #include "oops/instanceKlass.hpp"
  30 #include "oops/klass.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "runtime/orderAccess.hpp"
  33 #include "utilities/debug.hpp"
  34 #include "utilities/globalDefinitions.hpp"
  35 #include "utilities/macros.hpp"
  36 
  37 inline Klass* InstanceKlass::array_klasses_acquire() const {
  38   return OrderAccess::load_acquire(&_array_klasses);
  39 }
  40 
  41 inline void InstanceKlass::release_set_array_klasses(Klass* k) {
  42   OrderAccess::release_store(&_array_klasses, k);
  43 }
  44 
  45 inline jmethodID* InstanceKlass::methods_jmethod_ids_acquire() const {
  46   return OrderAccess::load_acquire(&_methods_jmethod_ids);
  47 }
  48 
  49 inline void InstanceKlass::release_set_methods_jmethod_ids(jmethodID* jmeths) {
  50   OrderAccess::release_store(&_methods_jmethod_ids, jmeths);
  51 }
  52 


< prev index next >