7 *
8 * This code is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * version 2 for more details (a copy is included in the LICENSE file that
12 * accompanied this code).
13 *
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #ifndef SHARE_VM_RUNTIME_ACCESS_INLINE_HPP
25 #define SHARE_VM_RUNTIME_ACCESS_INLINE_HPP
26
27 #include "gc/shared/barrierSet.inline.hpp"
28 #include "metaprogramming/conditional.hpp"
29 #include "metaprogramming/isFloatingPoint.hpp"
30 #include "metaprogramming/isIntegral.hpp"
31 #include "metaprogramming/isPointer.hpp"
32 #include "metaprogramming/isVolatile.hpp"
33 #include "oops/access.hpp"
34 #include "oops/accessBackend.inline.hpp"
35 #include "runtime/atomic.hpp"
36 #include "runtime/orderAccess.inline.hpp"
37
38 // This file outlines the template pipeline of accesses going through the Access
39 // API. There are essentially 5 steps for each access.
40 // * Step 1: Set default decorators and decay types. This step gets rid of CV qualifiers
41 // and sets default decorators to sensible values.
42 // * Step 2: Reduce types. This step makes sure there is only a single T type and not
43 // multiple types. The P type of the address and T type of the value must
44 // match.
45 // * Step 3: Pre-runtime dispatch. This step checks whether a runtime call can be
46 // avoided, and in that case avoids it (calling raw accesses or
|
7 *
8 * This code is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * version 2 for more details (a copy is included in the LICENSE file that
12 * accompanied this code).
13 *
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #ifndef SHARE_VM_RUNTIME_ACCESS_INLINE_HPP
25 #define SHARE_VM_RUNTIME_ACCESS_INLINE_HPP
26
27 #include "gc/shared/barrierSetConfig.inline.hpp"
28 #include "metaprogramming/conditional.hpp"
29 #include "metaprogramming/isFloatingPoint.hpp"
30 #include "metaprogramming/isIntegral.hpp"
31 #include "metaprogramming/isPointer.hpp"
32 #include "metaprogramming/isVolatile.hpp"
33 #include "oops/access.hpp"
34 #include "oops/accessBackend.inline.hpp"
35 #include "runtime/atomic.hpp"
36 #include "runtime/orderAccess.inline.hpp"
37
38 // This file outlines the template pipeline of accesses going through the Access
39 // API. There are essentially 5 steps for each access.
40 // * Step 1: Set default decorators and decay types. This step gets rid of CV qualifiers
41 // and sets default decorators to sensible values.
42 // * Step 2: Reduce types. This step makes sure there is only a single T type and not
43 // multiple types. The P type of the address and T type of the value must
44 // match.
45 // * Step 3: Pre-runtime dispatch. This step checks whether a runtime call can be
46 // avoided, and in that case avoids it (calling raw accesses or
|