1 /*
2 * Copyright (c) 2010, 2024, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
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_OOPS_OBJARRAYKLASS_INLINE_HPP
26 #define SHARE_OOPS_OBJARRAYKLASS_INLINE_HPP
27
28 #include "oops/objArrayKlass.hpp"
29
30 #include "memory/memRegion.hpp"
31 #include "oops/arrayKlass.hpp"
32 #include "oops/arrayOop.hpp"
33 #include "oops/klass.hpp"
34 #include "oops/objArrayOop.inline.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/atomicAccess.hpp"
37 #include "utilities/devirtualizer.inline.hpp"
38 #include "utilities/macros.hpp"
39
40 inline ObjArrayKlass* ObjArrayKlass::next_refined_array_klass_acquire() const {
41 return AtomicAccess::load_acquire(&_next_refined_array_klass);
42 }
43
44 inline void ObjArrayKlass::release_set_next_refined_klass(ObjArrayKlass* k) {
45 AtomicAccess::release_store(&_next_refined_array_klass, k);
46 }
47
48 template <typename T, class OopClosureType>
49 void ObjArrayKlass::oop_oop_iterate_elements(objArrayOop a, OopClosureType* closure) {
50 ShouldNotReachHere();
51 }
52
53 template <typename T, class OopClosureType>
54 void ObjArrayKlass::oop_oop_iterate_elements_bounded(
55 objArrayOop a, OopClosureType* closure, void* low, void* high) {
56 ShouldNotReachHere();
57
58 }
59
60 template <typename T, typename OopClosureType>
61 void ObjArrayKlass::oop_oop_iterate(oop obj, OopClosureType* closure) {
62 ShouldNotReachHere();
63 }
64
65 template <typename T, typename OopClosureType>
66 void ObjArrayKlass::oop_oop_iterate_reverse(oop obj, OopClosureType* closure) {
67 ShouldNotReachHere();
68 }
69
70 template <typename T, typename OopClosureType>
71 void ObjArrayKlass::oop_oop_iterate_bounded(oop obj, OopClosureType* closure, MemRegion mr) {
72 ShouldNotReachHere();
73 }
74
75 #endif // SHARE_OOPS_OBJARRAYKLASS_INLINE_HPP