annotate src/hotspot/share/oops/method.inline.hpp @ 53207:b1c6d4d7f801

8215724: Epsilon: ArrayStoreExceptionTest.java fails; missing arraycopy check Reviewed-by: eosterlund, lkorinth
author shade
date Wed, 09 Jan 2019 15:53:56 +0100
parents d7df2dd501ce
children 9807daeb47c4
rev   line source
hseigel@49340 1 /*
hseigel@49340 2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
hseigel@49340 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
hseigel@49340 4 *
hseigel@49340 5 * This code is free software; you can redistribute it and/or modify it
hseigel@49340 6 * under the terms of the GNU General Public License version 2 only, as
hseigel@49340 7 * published by the Free Software Foundation.
hseigel@49340 8 *
hseigel@49340 9 * This code is distributed in the hope that it will be useful, but WITHOUT
hseigel@49340 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
hseigel@49340 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
hseigel@49340 12 * version 2 for more details (a copy is included in the LICENSE file that
hseigel@49340 13 * accompanied this code).
hseigel@49340 14 *
hseigel@49340 15 * You should have received a copy of the GNU General Public License version
hseigel@49340 16 * 2 along with this work; if not, write to the Free Software Foundation,
hseigel@49340 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
hseigel@49340 18 *
hseigel@49340 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
hseigel@49340 20 * or visit www.oracle.com if you need additional information or have any
hseigel@49340 21 * questions.
hseigel@49340 22 *
hseigel@49340 23 */
hseigel@49340 24
hseigel@49340 25 #ifndef SHARE_VM_OOPS_METHOD_INLINE_HPP
hseigel@49340 26 #define SHARE_VM_OOPS_METHOD_INLINE_HPP
hseigel@49340 27
hseigel@49340 28 #include "oops/method.hpp"
coleenp@50429 29 #include "runtime/orderAccess.hpp"
hseigel@49340 30
hseigel@49340 31 inline address Method::from_compiled_entry() const {
hseigel@49340 32 return OrderAccess::load_acquire(&_from_compiled_entry);
hseigel@49340 33 }
hseigel@49340 34
hseigel@49340 35 inline address Method::from_interpreted_entry() const {
hseigel@49340 36 return OrderAccess::load_acquire(&_from_interpreted_entry);
hseigel@49340 37 }
hseigel@49340 38
hseigel@49340 39 inline void Method::set_method_data(MethodData* data) {
hseigel@49340 40 // The store into method must be released. On platforms without
hseigel@49340 41 // total store order (TSO) the reference may become visible before
hseigel@49340 42 // the initialization of data otherwise.
hseigel@49340 43 OrderAccess::release_store(&_method_data, data);
hseigel@49340 44 }
hseigel@49340 45
hseigel@49340 46 inline CompiledMethod* volatile Method::code() const {
hseigel@49340 47 assert( check_code(), "" );
hseigel@49340 48 return OrderAccess::load_acquire(&_code);
hseigel@49340 49 }
hseigel@49340 50
hseigel@49340 51 inline bool Method::has_compiled_code() const { return code() != NULL; }
hseigel@49340 52
hseigel@49340 53 #endif // SHARE_VM_OOPS_METHOD_INLINE_HPP