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_RUNTIME_OSTHREAD_HPP
26 #define SHARE_RUNTIME_OSTHREAD_HPP
27
28 #include "runtime/frame.hpp"
29 #include "runtime/handles.hpp"
30 #include "runtime/javaFrameAnchor.hpp"
31 #include "runtime/objectMonitor.hpp"
32 #include "runtime/suspendedThreadTask.hpp"
33 #include "utilities/macros.hpp"
34
35 #if defined(LINUX) || defined(AIX) || defined(BSD)
36 #include "suspendResume_posix.hpp"
37 #endif
38
39 class Monitor;
40
41 // The OSThread class holds OS-specific thread information. It is equivalent
42 // to the sys_thread_t structure of the classic JVM implementation.
43
44 // The thread states represented by the ThreadState values are platform-specific
45 // and are likely to be only approximate, because most OSes don't give you access
46 // to precise thread state information.
47
48 // Note: the ThreadState is legacy code and is not correctly implemented.
49 // Uses of ThreadState need to be replaced by the state in the JavaThread.
50
51 enum ThreadState {
|
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_RUNTIME_OSTHREAD_HPP
26 #define SHARE_RUNTIME_OSTHREAD_HPP
27
28 #include "runtime/frame.hpp"
29 #include "runtime/handles.hpp"
30 #include "runtime/javaFrameAnchor.hpp"
31 #include "runtime/suspendedThreadTask.hpp"
32 #include "utilities/macros.hpp"
33
34 #if defined(LINUX) || defined(AIX) || defined(BSD)
35 #include "suspendResume_posix.hpp"
36 #endif
37
38 class Monitor;
39
40 // The OSThread class holds OS-specific thread information. It is equivalent
41 // to the sys_thread_t structure of the classic JVM implementation.
42
43 // The thread states represented by the ThreadState values are platform-specific
44 // and are likely to be only approximate, because most OSes don't give you access
45 // to precise thread state information.
46
47 // Note: the ThreadState is legacy code and is not correctly implemented.
48 // Uses of ThreadState need to be replaced by the state in the JavaThread.
49
50 enum ThreadState {
|