20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 # include "incls/_precompiled.incl" |
25 #include "precompiled.hpp" |
26 # include "incls/_orderAccess.cpp.incl" |
26 #include "runtime/orderAccess.hpp" |
|
27 #include "runtime/stubRoutines.hpp" |
|
28 #include "runtime/thread.hpp" |
27 |
29 |
28 void OrderAccess::StubRoutines_fence() { |
30 void OrderAccess::StubRoutines_fence() { |
29 // Use a stub if it exists. It may not exist during bootstrap so do |
31 // Use a stub if it exists. It may not exist during bootstrap so do |
30 // nothing in that case but assert if no fence code exists after threads have been created |
32 // nothing in that case but assert if no fence code exists after threads have been created |
31 void (*func)() = CAST_TO_FN_PTR(void (*)(), StubRoutines::fence_entry()); |
33 void (*func)() = CAST_TO_FN_PTR(void (*)(), StubRoutines::fence_entry()); |