author | coleenp |
Fri, 12 Apr 2019 09:30:17 -0400 | |
changeset 54523 | 5df03f58d25b |
parent 54495 | 941db9c0b5b5 |
child 54898 | 17926213de55 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52877
diff
changeset
|
2 |
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52877
diff
changeset
|
25 |
#ifndef SHARE_RUNTIME_INTERFACESUPPORT_INLINE_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52877
diff
changeset
|
26 |
#define SHARE_RUNTIME_INTERFACESUPPORT_INLINE_HPP |
7397 | 27 |
|
28 |
#include "runtime/handles.inline.hpp" |
|
29 |
#include "runtime/mutexLocker.hpp" |
|
30 |
#include "runtime/orderAccess.hpp" |
|
31 |
#include "runtime/os.hpp" |
|
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
32 |
#include "runtime/safepointMechanism.inline.hpp" |
49594
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
33 |
#include "runtime/safepointVerifiers.hpp" |
49449
ef5d5d343e2a
8199263: Split interfaceSupport.hpp to not require including .inline.hpp files
coleenp
parents:
47881
diff
changeset
|
34 |
#include "runtime/thread.hpp" |
52877
9e041366c764
8214850: Rename vm_operations.?pp files to vmOperations.?pp files
tschatzl
parents:
52460
diff
changeset
|
35 |
#include "runtime/vmOperations.hpp" |
7397 | 36 |
#include "utilities/globalDefinitions.hpp" |
54347
235883996bc7
8221698: Remove redundant includes from popular header files
iklam
parents:
54323
diff
changeset
|
37 |
#include "utilities/histogram.hpp" |
40010 | 38 |
#include "utilities/macros.hpp" |
7397 | 39 |
#include "utilities/preserveException.hpp" |
40 |
||
1 | 41 |
// Wrapper for all entry points to the virtual machine. |
42 |
||
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
43 |
// InterfaceSupport provides functionality used by the VM_LEAF_BASE and |
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
44 |
// VM_ENTRY_BASE macros. These macros are used to guard entry points into |
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
45 |
// the VM and perform checks upon leave of the VM. |
1 | 46 |
|
47 |
||
48 |
class InterfaceSupport: AllStatic { |
|
49 |
# ifdef ASSERT |
|
50 |
public: |
|
51 |
static long _scavenge_alot_counter; |
|
52 |
static long _fullgc_alot_counter; |
|
53 |
static long _number_of_calls; |
|
54 |
static long _fullgc_alot_invocation; |
|
55 |
||
56 |
// Helper methods used to implement +ScavengeALot and +FullGCALot |
|
57 |
static void check_gc_alot() { if (ScavengeALot || FullGCALot) gc_alot(); } |
|
58 |
static void gc_alot(); |
|
59 |
||
60 |
static void walk_stack_from(vframe* start_vf); |
|
61 |
static void walk_stack(); |
|
62 |
||
63 |
static void zombieAll(); |
|
64 |
static void deoptimizeAll(); |
|
65 |
static void stress_derived_pointers(); |
|
66 |
static void verify_stack(); |
|
67 |
static void verify_last_frame(); |
|
68 |
# endif |
|
69 |
}; |
|
70 |
||
71 |
||
72 |
// Basic class for all thread transition classes. |
|
73 |
||
74 |
class ThreadStateTransition : public StackObj { |
|
75 |
protected: |
|
76 |
JavaThread* _thread; |
|
77 |
public: |
|
78 |
ThreadStateTransition(JavaThread *thread) { |
|
79 |
_thread = thread; |
|
80 |
assert(thread != NULL && thread->is_Java_thread(), "must be Java thread"); |
|
81 |
} |
|
82 |
||
83 |
// Change threadstate in a manner, so safepoint can detect changes. |
|
84 |
// Time-critical: called on exit from every runtime routine |
|
85 |
static inline void transition(JavaThread *thread, JavaThreadState from, JavaThreadState to) { |
|
86 |
assert(from != _thread_in_Java, "use transition_from_java"); |
|
87 |
assert(from != _thread_in_native, "use transition_from_native"); |
|
88 |
assert((from & 1) == 0 && (to & 1) == 0, "odd numbers are transitions states"); |
|
89 |
assert(thread->thread_state() == from, "coming from wrong thread state"); |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
90 |
// Change to transition state and ensure it is seen by the VM thread. |
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
91 |
thread->set_thread_state_fence((JavaThreadState)(from + 1)); |
1 | 92 |
|
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
93 |
SafepointMechanism::block_if_requested(thread); |
1 | 94 |
thread->set_thread_state(to); |
95 |
||
96 |
CHECK_UNHANDLED_OOPS_ONLY(thread->clear_unhandled_oops();) |
|
97 |
} |
|
98 |
||
99 |
// Same as above, but assumes from = _thread_in_Java. This is simpler, since we |
|
100 |
// never block on entry to the VM. This will break the code, since e.g. preserve arguments |
|
101 |
// have not been setup. |
|
102 |
static inline void transition_from_java(JavaThread *thread, JavaThreadState to) { |
|
103 |
assert(thread->thread_state() == _thread_in_Java, "coming from wrong thread state"); |
|
104 |
thread->set_thread_state(to); |
|
105 |
} |
|
106 |
||
107 |
static inline void transition_from_native(JavaThread *thread, JavaThreadState to) { |
|
108 |
assert((to & 1) == 0, "odd numbers are transitions states"); |
|
109 |
assert(thread->thread_state() == _thread_in_native, "coming from wrong thread state"); |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
110 |
// Change to transition state and ensure it is seen by the VM thread. |
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
111 |
thread->set_thread_state_fence(_thread_in_native_trans); |
1 | 112 |
|
113 |
// We never install asynchronous exceptions when coming (back) in |
|
114 |
// to the runtime from native code because the runtime is not set |
|
115 |
// up to handle exceptions floating around at arbitrary points. |
|
52450 | 116 |
if (SafepointMechanism::should_block(thread) || thread->is_suspend_after_native()) { |
1 | 117 |
JavaThread::check_safepoint_and_suspend_for_native_trans(thread); |
118 |
} |
|
119 |
||
120 |
thread->set_thread_state(to); |
|
121 |
} |
|
122 |
protected: |
|
123 |
void trans(JavaThreadState from, JavaThreadState to) { transition(_thread, from, to); } |
|
124 |
void trans_from_java(JavaThreadState to) { transition_from_java(_thread, to); } |
|
125 |
void trans_from_native(JavaThreadState to) { transition_from_native(_thread, to); } |
|
126 |
}; |
|
127 |
||
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
128 |
class ThreadInVMForHandshake : public ThreadStateTransition { |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
129 |
const JavaThreadState _original_state; |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
130 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
131 |
void transition_back() { |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
132 |
// This can be invoked from transition states and must return to the original state properly |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
133 |
assert(_thread->thread_state() == _thread_in_vm, "should only call when leaving VM after handshake"); |
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
134 |
// Change to transition state and ensure it is seen by the VM thread. |
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
135 |
_thread->set_thread_state_fence(_thread_in_vm_trans); |
47881
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
136 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
137 |
SafepointMechanism::block_if_requested(_thread); |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
138 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
139 |
_thread->set_thread_state(_original_state); |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
140 |
} |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
141 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
142 |
public: |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
143 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
144 |
ThreadInVMForHandshake(JavaThread* thread) : ThreadStateTransition(thread), |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
145 |
_original_state(thread->thread_state()) { |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
146 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
147 |
if (thread->has_last_Java_frame()) { |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
148 |
thread->frame_anchor()->make_walkable(thread); |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
149 |
} |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
150 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
151 |
thread->set_thread_state(_thread_in_vm); |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
152 |
} |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
153 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
154 |
~ThreadInVMForHandshake() { |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
155 |
transition_back(); |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
156 |
} |
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
157 |
|
0ce0ac68ace7
8189941: Implementation JEP 312: Thread-local handshake
rehn
parents:
47216
diff
changeset
|
158 |
}; |
1 | 159 |
|
160 |
class ThreadInVMfromJava : public ThreadStateTransition { |
|
161 |
public: |
|
162 |
ThreadInVMfromJava(JavaThread* thread) : ThreadStateTransition(thread) { |
|
163 |
trans_from_java(_thread_in_vm); |
|
164 |
} |
|
165 |
~ThreadInVMfromJava() { |
|
40926
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
166 |
if (_thread->stack_yellow_reserved_zone_disabled()) { |
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
167 |
_thread->enable_stack_yellow_reserved_zone(); |
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
168 |
} |
1 | 169 |
trans(_thread_in_vm, _thread_in_Java); |
170 |
// Check for pending. async. exceptions or suspends. |
|
171 |
if (_thread->has_special_runtime_exit_condition()) _thread->handle_special_runtime_exit_condition(); |
|
172 |
} |
|
173 |
}; |
|
174 |
||
175 |
||
176 |
class ThreadInVMfromUnknown { |
|
177 |
JavaThread* _thread; |
|
178 |
public: |
|
179 |
ThreadInVMfromUnknown() : _thread(NULL) { |
|
180 |
Thread* t = Thread::current(); |
|
181 |
if (t->is_Java_thread()) { |
|
182 |
JavaThread* t2 = (JavaThread*) t; |
|
183 |
if (t2->thread_state() == _thread_in_native) { |
|
184 |
_thread = t2; |
|
185 |
ThreadStateTransition::transition_from_native(t2, _thread_in_vm); |
|
186 |
// Used to have a HandleMarkCleaner but that is dangerous as |
|
187 |
// it could free a handle in our (indirect, nested) caller. |
|
188 |
// We expect any handles will be short lived and figure we |
|
189 |
// don't need an actual HandleMark. |
|
190 |
} |
|
191 |
} |
|
192 |
} |
|
193 |
~ThreadInVMfromUnknown() { |
|
194 |
if (_thread) { |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
195 |
ThreadStateTransition::transition(_thread, _thread_in_vm, _thread_in_native); |
1 | 196 |
} |
197 |
} |
|
198 |
}; |
|
199 |
||
200 |
||
201 |
class ThreadInVMfromNative : public ThreadStateTransition { |
|
202 |
public: |
|
203 |
ThreadInVMfromNative(JavaThread* thread) : ThreadStateTransition(thread) { |
|
204 |
trans_from_native(_thread_in_vm); |
|
205 |
} |
|
206 |
~ThreadInVMfromNative() { |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
207 |
trans(_thread_in_vm, _thread_in_native); |
1 | 208 |
} |
209 |
}; |
|
210 |
||
211 |
||
212 |
class ThreadToNativeFromVM : public ThreadStateTransition { |
|
213 |
public: |
|
214 |
ThreadToNativeFromVM(JavaThread *thread) : ThreadStateTransition(thread) { |
|
215 |
// We are leaving the VM at this point and going directly to native code. |
|
216 |
// Block, if we are in the middle of a safepoint synchronization. |
|
217 |
assert(!thread->owns_locks(), "must release all locks when leaving VM"); |
|
218 |
thread->frame_anchor()->make_walkable(thread); |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
219 |
trans(_thread_in_vm, _thread_in_native); |
1 | 220 |
// Check for pending. async. exceptions or suspends. |
221 |
if (_thread->has_special_runtime_exit_condition()) _thread->handle_special_runtime_exit_condition(false); |
|
222 |
} |
|
223 |
||
224 |
~ThreadToNativeFromVM() { |
|
225 |
trans_from_native(_thread_in_vm); |
|
41084
fc5db29fa08e
8164086: Checked JNI pending exception check should be cleared when returning to Java frame
dsimms
parents:
40926
diff
changeset
|
226 |
assert(!_thread->is_pending_jni_exception_check(), "Pending JNI Exception Check"); |
1 | 227 |
// We don't need to clear_walkable because it will happen automagically when we return to java |
228 |
} |
|
229 |
}; |
|
230 |
||
231 |
||
232 |
class ThreadBlockInVM : public ThreadStateTransition { |
|
233 |
public: |
|
234 |
ThreadBlockInVM(JavaThread *thread) |
|
235 |
: ThreadStateTransition(thread) { |
|
236 |
// Once we are blocked vm expects stack to be walkable |
|
237 |
thread->frame_anchor()->make_walkable(thread); |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
238 |
trans(_thread_in_vm, _thread_blocked); |
1 | 239 |
} |
240 |
~ThreadBlockInVM() { |
|
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
241 |
trans(_thread_blocked, _thread_in_vm); |
54323 | 242 |
OrderAccess::cross_modify_fence(); |
1 | 243 |
// We don't need to clear_walkable because it will happen automagically when we return to java |
244 |
} |
|
245 |
}; |
|
246 |
||
53646
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
247 |
// Unlike ThreadBlockInVM, this class is designed to avoid certain deadlock scenarios while making |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
248 |
// transitions inside class Monitor in cases where we need to block for a safepoint or handshake. It |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
249 |
// receives an extra argument compared to ThreadBlockInVM, the address of a pointer to the monitor we |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
250 |
// are trying to acquire. This will be used to access and release the monitor if needed to avoid |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
251 |
// said deadlocks. |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
252 |
// It works like ThreadBlockInVM but differs from it in two ways: |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
253 |
// - When transitioning in (constructor), it checks for safepoints without blocking, i.e., calls |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
254 |
// back if needed to allow a pending safepoint to continue but does not block in it. |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
255 |
// - When transitioning back (destructor), if there is a pending safepoint or handshake it releases |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
256 |
// the monitor that is only partially acquired. |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
257 |
class ThreadBlockInVMWithDeadlockCheck : public ThreadStateTransition { |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
258 |
private: |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
259 |
Monitor** _in_flight_monitor_adr; |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
260 |
|
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
261 |
void release_monitor() { |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
262 |
assert(_in_flight_monitor_adr != NULL, "_in_flight_monitor_adr should have been set on constructor"); |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
263 |
Monitor* in_flight_monitor = *_in_flight_monitor_adr; |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
264 |
if (in_flight_monitor != NULL) { |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
265 |
in_flight_monitor->release_for_safepoint(); |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
266 |
*_in_flight_monitor_adr = NULL; |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
267 |
} |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
268 |
} |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
269 |
public: |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
270 |
ThreadBlockInVMWithDeadlockCheck(JavaThread* thread, Monitor** in_flight_monitor_adr) |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
271 |
: ThreadStateTransition(thread), _in_flight_monitor_adr(in_flight_monitor_adr) { |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
272 |
// Once we are blocked vm expects stack to be walkable |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
273 |
thread->frame_anchor()->make_walkable(thread); |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
274 |
|
53775 | 275 |
// All unsafe states are treated the same by the VMThread |
276 |
// so we can skip the _thread_in_vm_trans state here. Since |
|
277 |
// we don't read poll, it's enough to order the stores. |
|
278 |
OrderAccess::storestore(); |
|
53646
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
279 |
|
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
280 |
thread->set_thread_state(_thread_blocked); |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
281 |
} |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
282 |
~ThreadBlockInVMWithDeadlockCheck() { |
54495
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
283 |
// Change to transition state and ensure it is seen by the VM thread. |
941db9c0b5b5
8222231: Clean up interfaceSupport.inline.hpp duplicated code
coleenp
parents:
54347
diff
changeset
|
284 |
_thread->set_thread_state_fence((JavaThreadState)(_thread_blocked_trans)); |
53646
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
285 |
|
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
286 |
if (SafepointMechanism::should_block(_thread)) { |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
287 |
release_monitor(); |
53775 | 288 |
SafepointMechanism::block_if_requested(_thread); |
53646
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
289 |
} |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
290 |
|
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
291 |
_thread->set_thread_state(_thread_in_vm); |
54323 | 292 |
OrderAccess::cross_modify_fence(); |
53646
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
293 |
} |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
294 |
}; |
043ae846819f
8210832: Remove sneaky locking in class Monitor
pchilanomate
parents:
53244
diff
changeset
|
295 |
|
1 | 296 |
|
297 |
// This special transition class is only used to prevent asynchronous exceptions |
|
298 |
// from being installed on vm exit in situations where we can't tolerate them. |
|
299 |
// See bugs: 4324348, 4854693, 4998314, 5040492, 5050705. |
|
300 |
class ThreadInVMfromJavaNoAsyncException : public ThreadStateTransition { |
|
301 |
public: |
|
302 |
ThreadInVMfromJavaNoAsyncException(JavaThread* thread) : ThreadStateTransition(thread) { |
|
303 |
trans_from_java(_thread_in_vm); |
|
304 |
} |
|
305 |
~ThreadInVMfromJavaNoAsyncException() { |
|
40926
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
306 |
if (_thread->stack_yellow_reserved_zone_disabled()) { |
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
307 |
_thread->enable_stack_yellow_reserved_zone(); |
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
308 |
} |
1 | 309 |
trans(_thread_in_vm, _thread_in_Java); |
310 |
// NOTE: We do not check for pending. async. exceptions. |
|
311 |
// If we did and moved the pending async exception over into the |
|
312 |
// pending exception field, we would need to deopt (currently C2 |
|
313 |
// only). However, to do so would require that we transition back |
|
314 |
// to the _thread_in_vm state. Instead we postpone the handling of |
|
315 |
// the async exception. |
|
316 |
||
40926
2fd1cf3e70e9
8137035: nsk/stress/stack/stack tests got EXCEPTION_STACK_OVERFLOW on Windows 64 bit
fparain
parents:
40010
diff
changeset
|
317 |
|
1 | 318 |
// Check for pending. suspends only. |
319 |
if (_thread->has_special_runtime_exit_condition()) |
|
320 |
_thread->handle_special_runtime_exit_condition(false); |
|
321 |
} |
|
322 |
}; |
|
323 |
||
324 |
// Debug class instantiated in JRT_ENTRY and ITR_ENTRY macro. |
|
325 |
// Can be used to verify properties on enter/exit of the VM. |
|
326 |
||
327 |
#ifdef ASSERT |
|
328 |
class VMEntryWrapper { |
|
329 |
public: |
|
49449
ef5d5d343e2a
8199263: Split interfaceSupport.hpp to not require including .inline.hpp files
coleenp
parents:
47881
diff
changeset
|
330 |
VMEntryWrapper(); |
ef5d5d343e2a
8199263: Split interfaceSupport.hpp to not require including .inline.hpp files
coleenp
parents:
47881
diff
changeset
|
331 |
~VMEntryWrapper(); |
1 | 332 |
}; |
333 |
||
334 |
||
335 |
class VMNativeEntryWrapper { |
|
336 |
public: |
|
337 |
VMNativeEntryWrapper() { |
|
338 |
if (GCALotAtAllSafepoints) InterfaceSupport::check_gc_alot(); |
|
339 |
} |
|
340 |
||
341 |
~VMNativeEntryWrapper() { |
|
342 |
if (GCALotAtAllSafepoints) InterfaceSupport::check_gc_alot(); |
|
343 |
} |
|
344 |
}; |
|
345 |
||
346 |
#endif |
|
347 |
||
348 |
||
349 |
// VM-internal runtime interface support |
|
350 |
||
49594
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
351 |
// Definitions for JRT (Java (Compiler/Shared) Runtime) |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
352 |
|
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
353 |
// JRT_LEAF currently can be called from either _thread_in_Java or |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
354 |
// _thread_in_native mode. In _thread_in_native, it is ok |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
355 |
// for another thread to trigger GC. The rest of the JRT_LEAF |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
356 |
// rules apply. |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
357 |
class JRTLeafVerifier : public NoSafepointVerifier { |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
358 |
static bool should_verify_GC(); |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
359 |
public: |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
360 |
#ifdef ASSERT |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
361 |
JRTLeafVerifier(); |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
362 |
~JRTLeafVerifier(); |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
363 |
#else |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
364 |
JRTLeafVerifier() {} |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
365 |
~JRTLeafVerifier() {} |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
366 |
#endif |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
367 |
}; |
898ef81cbc0e
8200106: Move NoSafepointVerifier out from gcLocker.hpp
stefank
parents:
49449
diff
changeset
|
368 |
|
1 | 369 |
#ifdef ASSERT |
370 |
||
371 |
class RuntimeHistogramElement : public HistogramElement { |
|
372 |
public: |
|
373 |
RuntimeHistogramElement(const char* name); |
|
374 |
}; |
|
375 |
||
376 |
#define TRACE_CALL(result_type, header) \ |
|
377 |
InterfaceSupport::_number_of_calls++; \ |
|
378 |
if (CountRuntimeCalls) { \ |
|
379 |
static RuntimeHistogramElement* e = new RuntimeHistogramElement(#header); \ |
|
380 |
if (e != NULL) e->increment_count(); \ |
|
381 |
} |
|
382 |
#else |
|
383 |
#define TRACE_CALL(result_type, header) \ |
|
384 |
/* do nothing */ |
|
385 |
#endif |
|
386 |
||
387 |
||
388 |
// LEAF routines do not lock, GC or throw exceptions |
|
389 |
||
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
390 |
#define VM_LEAF_BASE(result_type, header) \ |
1 | 391 |
TRACE_CALL(result_type, header) \ |
392 |
debug_only(NoHandleMark __hm;) \ |
|
11961
0abd4cd26e5a
7147740: add assertions to check stack alignment on VM entry from generated code (x64)
roland
parents:
10969
diff
changeset
|
393 |
os::verify_stack_alignment(); \ |
1 | 394 |
/* begin of body */ |
395 |
||
36086 | 396 |
#define VM_ENTRY_BASE_FROM_LEAF(result_type, header, thread) \ |
397 |
TRACE_CALL(result_type, header) \ |
|
398 |
debug_only(ResetNoHandleMark __rnhm;) \ |
|
399 |
HandleMarkCleaner __hm(thread); \ |
|
400 |
Thread* THREAD = thread; \ |
|
401 |
os::verify_stack_alignment(); \ |
|
402 |
/* begin of body */ |
|
403 |
||
1 | 404 |
|
405 |
// ENTRY routines may lock, GC and throw exceptions |
|
406 |
||
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
407 |
#define VM_ENTRY_BASE(result_type, header, thread) \ |
1 | 408 |
TRACE_CALL(result_type, header) \ |
409 |
HandleMarkCleaner __hm(thread); \ |
|
410 |
Thread* THREAD = thread; \ |
|
11961
0abd4cd26e5a
7147740: add assertions to check stack alignment on VM entry from generated code (x64)
roland
parents:
10969
diff
changeset
|
411 |
os::verify_stack_alignment(); \ |
1 | 412 |
/* begin of body */ |
413 |
||
414 |
||
415 |
// QUICK_ENTRY routines behave like ENTRY but without a handle mark |
|
416 |
||
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
417 |
#define VM_QUICK_ENTRY_BASE(result_type, header, thread) \ |
1 | 418 |
TRACE_CALL(result_type, header) \ |
419 |
debug_only(NoHandleMark __hm;) \ |
|
420 |
Thread* THREAD = thread; \ |
|
11961
0abd4cd26e5a
7147740: add assertions to check stack alignment on VM entry from generated code (x64)
roland
parents:
10969
diff
changeset
|
421 |
os::verify_stack_alignment(); \ |
1 | 422 |
/* begin of body */ |
423 |
||
424 |
||
425 |
#define JRT_ENTRY(result_type, header) \ |
|
426 |
result_type header { \ |
|
427 |
ThreadInVMfromJava __tiv(thread); \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
428 |
VM_ENTRY_BASE(result_type, header, thread) \ |
1 | 429 |
debug_only(VMEntryWrapper __vew;) |
430 |
||
431 |
||
432 |
#define JRT_LEAF(result_type, header) \ |
|
433 |
result_type header { \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
434 |
VM_LEAF_BASE(result_type, header) \ |
35492
c8c0273e6b91
8146690: Make all classes in GC follow the naming convention.
david
parents:
34633
diff
changeset
|
435 |
debug_only(JRTLeafVerifier __jlv;) |
1 | 436 |
|
437 |
||
438 |
#define JRT_ENTRY_NO_ASYNC(result_type, header) \ |
|
439 |
result_type header { \ |
|
440 |
ThreadInVMfromJavaNoAsyncException __tiv(thread); \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
441 |
VM_ENTRY_BASE(result_type, header, thread) \ |
1 | 442 |
debug_only(VMEntryWrapper __vew;) |
443 |
||
444 |
// Same as JRT Entry but allows for return value after the safepoint |
|
445 |
// to get back into Java from the VM |
|
446 |
#define JRT_BLOCK_ENTRY(result_type, header) \ |
|
447 |
result_type header { \ |
|
448 |
TRACE_CALL(result_type, header) \ |
|
449 |
HandleMarkCleaner __hm(thread); |
|
450 |
||
451 |
#define JRT_BLOCK \ |
|
452 |
{ \ |
|
453 |
ThreadInVMfromJava __tiv(thread); \ |
|
454 |
Thread* THREAD = thread; \ |
|
455 |
debug_only(VMEntryWrapper __vew;) |
|
456 |
||
29070 | 457 |
#define JRT_BLOCK_NO_ASYNC \ |
458 |
{ \ |
|
459 |
ThreadInVMfromJavaNoAsyncException __tiv(thread); \ |
|
460 |
Thread* THREAD = thread; \ |
|
461 |
debug_only(VMEntryWrapper __vew;) |
|
462 |
||
1 | 463 |
#define JRT_BLOCK_END } |
464 |
||
465 |
#define JRT_END } |
|
466 |
||
467 |
// Definitions for JNI |
|
468 |
||
469 |
#define JNI_ENTRY(result_type, header) \ |
|
470 |
JNI_ENTRY_NO_PRESERVE(result_type, header) \ |
|
471 |
WeakPreserveExceptionMark __wem(thread); |
|
472 |
||
36551 | 473 |
#define JNI_ENTRY_NO_PRESERVE(result_type, header) \ |
1 | 474 |
extern "C" { \ |
36551 | 475 |
result_type JNICALL header { \ |
1 | 476 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
477 |
assert( !VerifyJNIEnvThread || (thread == Thread::current()), "JNIEnv is only valid in same thread"); \ |
|
478 |
ThreadInVMfromNative __tiv(thread); \ |
|
479 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
480 |
VM_ENTRY_BASE(result_type, header, thread) |
1 | 481 |
|
482 |
||
483 |
// Ensure that the VMNativeEntryWrapper constructor, which can cause |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
484 |
// a GC, is called outside the NoHandleMark (set via VM_QUICK_ENTRY_BASE). |
1 | 485 |
#define JNI_QUICK_ENTRY(result_type, header) \ |
486 |
extern "C" { \ |
|
36551 | 487 |
result_type JNICALL header { \ |
1 | 488 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
489 |
assert( !VerifyJNIEnvThread || (thread == Thread::current()), "JNIEnv is only valid in same thread"); \ |
|
490 |
ThreadInVMfromNative __tiv(thread); \ |
|
491 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
492 |
VM_QUICK_ENTRY_BASE(result_type, header, thread) |
1 | 493 |
|
494 |
||
495 |
#define JNI_LEAF(result_type, header) \ |
|
496 |
extern "C" { \ |
|
36551 | 497 |
result_type JNICALL header { \ |
1 | 498 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
499 |
assert( !VerifyJNIEnvThread || (thread == Thread::current()), "JNIEnv is only valid in same thread"); \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
500 |
VM_LEAF_BASE(result_type, header) |
1 | 501 |
|
502 |
||
503 |
// Close the routine and the extern "C" |
|
504 |
#define JNI_END } } |
|
505 |
||
506 |
||
507 |
||
508 |
// Definitions for JVM |
|
509 |
||
510 |
#define JVM_ENTRY(result_type, header) \ |
|
511 |
extern "C" { \ |
|
512 |
result_type JNICALL header { \ |
|
513 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
|
514 |
ThreadInVMfromNative __tiv(thread); \ |
|
515 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
516 |
VM_ENTRY_BASE(result_type, header, thread) |
1 | 517 |
|
518 |
||
519 |
#define JVM_ENTRY_NO_ENV(result_type, header) \ |
|
520 |
extern "C" { \ |
|
521 |
result_type JNICALL header { \ |
|
34633
2a6c7c7b30a7
8132510: Replace ThreadLocalStorage with compiler/language-based thread-local variables
dholmes
parents:
34285
diff
changeset
|
522 |
JavaThread* thread = JavaThread::current(); \ |
1 | 523 |
ThreadInVMfromNative __tiv(thread); \ |
524 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
525 |
VM_ENTRY_BASE(result_type, header, thread) |
1 | 526 |
|
527 |
||
528 |
#define JVM_QUICK_ENTRY(result_type, header) \ |
|
529 |
extern "C" { \ |
|
530 |
result_type JNICALL header { \ |
|
531 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
|
532 |
ThreadInVMfromNative __tiv(thread); \ |
|
533 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
534 |
VM_QUICK_ENTRY_BASE(result_type, header, thread) |
1 | 535 |
|
536 |
||
537 |
#define JVM_LEAF(result_type, header) \ |
|
538 |
extern "C" { \ |
|
539 |
result_type JNICALL header { \ |
|
540 |
VM_Exit::block_if_vm_exited(); \ |
|
10969
3ecf25293e5a
7103224: collision between __LEAF define in interfaceSupport.hpp and /usr/include/sys/cdefs.h with gcc
never
parents:
10565
diff
changeset
|
541 |
VM_LEAF_BASE(result_type, header) |
1 | 542 |
|
543 |
||
36086 | 544 |
#define JVM_ENTRY_FROM_LEAF(env, result_type, header) \ |
545 |
{ { \ |
|
546 |
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \ |
|
547 |
ThreadInVMfromNative __tiv(thread); \ |
|
548 |
debug_only(VMNativeEntryWrapper __vew;) \ |
|
549 |
VM_ENTRY_BASE_FROM_LEAF(result_type, header, thread) |
|
550 |
||
551 |
||
1 | 552 |
#define JVM_END } } |
7397 | 553 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
52877
diff
changeset
|
554 |
#endif // SHARE_RUNTIME_INTERFACESUPPORT_INLINE_HPP |