equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
28 #define SHARE_VM_RUNTIME_THREAD_INLINE_HPP_SCOPE |
28 #define SHARE_VM_RUNTIME_THREAD_INLINE_HPP_SCOPE |
29 |
29 |
30 #include "runtime/atomic.inline.hpp" |
30 #include "runtime/atomic.inline.hpp" |
31 #include "runtime/os.inline.hpp" |
31 #include "runtime/os.inline.hpp" |
32 #include "runtime/thread.hpp" |
32 #include "runtime/thread.hpp" |
33 #ifdef TARGET_OS_FAMILY_linux |
|
34 # include "thread_linux.inline.hpp" |
|
35 #endif |
|
36 #ifdef TARGET_OS_FAMILY_solaris |
|
37 # include "thread_solaris.inline.hpp" |
|
38 #endif |
|
39 #ifdef TARGET_OS_FAMILY_windows |
|
40 # include "thread_windows.inline.hpp" |
|
41 #endif |
|
42 #ifdef TARGET_OS_FAMILY_aix |
|
43 # include "thread_aix.inline.hpp" |
|
44 #endif |
|
45 #ifdef TARGET_OS_FAMILY_bsd |
|
46 # include "thread_bsd.inline.hpp" |
|
47 #endif |
|
48 |
33 |
49 #undef SHARE_VM_RUNTIME_THREAD_INLINE_HPP_SCOPE |
34 #undef SHARE_VM_RUNTIME_THREAD_INLINE_HPP_SCOPE |
50 |
35 |
51 inline void Thread::set_suspend_flag(SuspendFlags f) { |
36 inline void Thread::set_suspend_flag(SuspendFlags f) { |
52 assert(sizeof(jint) == sizeof(_suspend_flags), "size mismatch"); |
37 assert(sizeof(jint) == sizeof(_suspend_flags), "size mismatch"); |