19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
|
24 |
|
25 #ifndef SHARE_VM_UTILITIES_TASKQUEUE_HPP |
|
26 #define SHARE_VM_UTILITIES_TASKQUEUE_HPP |
|
27 |
|
28 #include "memory/allocation.hpp" |
|
29 #include "memory/allocation.inline.hpp" |
|
30 #include "runtime/mutex.hpp" |
|
31 #include "utilities/stack.hpp" |
|
32 #ifdef TARGET_OS_ARCH_linux_x86 |
|
33 # include "orderAccess_linux_x86.inline.hpp" |
|
34 #endif |
|
35 #ifdef TARGET_OS_ARCH_linux_sparc |
|
36 # include "orderAccess_linux_sparc.inline.hpp" |
|
37 #endif |
|
38 #ifdef TARGET_OS_ARCH_linux_zero |
|
39 # include "orderAccess_linux_zero.inline.hpp" |
|
40 #endif |
|
41 #ifdef TARGET_OS_ARCH_solaris_x86 |
|
42 # include "orderAccess_solaris_x86.inline.hpp" |
|
43 #endif |
|
44 #ifdef TARGET_OS_ARCH_solaris_sparc |
|
45 # include "orderAccess_solaris_sparc.inline.hpp" |
|
46 #endif |
|
47 #ifdef TARGET_OS_ARCH_windows_x86 |
|
48 # include "orderAccess_windows_x86.inline.hpp" |
|
49 #endif |
24 |
50 |
25 // Simple TaskQueue stats that are collected by default in debug builds. |
51 // Simple TaskQueue stats that are collected by default in debug builds. |
26 |
52 |
27 #if !defined(TASKQUEUE_STATS) && defined(ASSERT) |
53 #if !defined(TASKQUEUE_STATS) && defined(ASSERT) |
28 #define TASKQUEUE_STATS 1 |
54 #define TASKQUEUE_STATS 1 |