Mercurial > hg > truffle
comparison src/share/vm/runtime/osThread.hpp @ 1972:f95d63e2154a
6989984: Use standard include model for Hospot
Summary: Replaced MakeDeps and the includeDB files with more standardized solutions.
Reviewed-by: coleenp, kvn, kamg
author | stefank |
---|---|
date | Tue, 23 Nov 2010 13:22:55 -0800 |
parents | c18cbe5936b8 |
children | 828eafbd85cc |
comparison
equal
deleted
inserted
replaced
1971:e33f46fc48ed | 1972:f95d63e2154a |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2010, 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. |
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_RUNTIME_OSTHREAD_HPP | |
26 #define SHARE_VM_RUNTIME_OSTHREAD_HPP | |
27 | |
28 #include "runtime/frame.hpp" | |
29 #include "runtime/handles.hpp" | |
30 #include "runtime/hpi.hpp" | |
31 #include "runtime/javaFrameAnchor.hpp" | |
32 #include "runtime/objectMonitor.hpp" | |
33 #include "utilities/top.hpp" | |
24 | 34 |
25 // The OSThread class holds OS-specific thread information. It is equivalent | 35 // The OSThread class holds OS-specific thread information. It is equivalent |
26 // to the sys_thread_t structure of the classic JVM implementation. | 36 // to the sys_thread_t structure of the classic JVM implementation. |
27 | 37 |
28 // The thread states represented by the ThreadState values are platform-specific | 38 // The thread states represented by the ThreadState values are platform-specific |
89 | 99 |
90 // For java intrinsics: | 100 // For java intrinsics: |
91 static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); } | 101 static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); } |
92 | 102 |
93 // Platform dependent stuff | 103 // Platform dependent stuff |
94 #include "incls/_osThread_pd.hpp.incl" | 104 #ifdef TARGET_OS_FAMILY_linux |
105 # include "osThread_linux.hpp" | |
106 #endif | |
107 #ifdef TARGET_OS_FAMILY_solaris | |
108 # include "osThread_solaris.hpp" | |
109 #endif | |
110 #ifdef TARGET_OS_FAMILY_windows | |
111 # include "osThread_windows.hpp" | |
112 #endif | |
113 | |
95 }; | 114 }; |
96 | 115 |
97 | 116 |
98 // Utility class for use with condition variables: | 117 // Utility class for use with condition variables: |
99 class OSThreadWaitState : public StackObj { | 118 class OSThreadWaitState : public StackObj { |
127 } | 146 } |
128 ~OSThreadContendState() { | 147 ~OSThreadContendState() { |
129 _osthread->set_state(_old_state); | 148 _osthread->set_state(_old_state); |
130 } | 149 } |
131 }; | 150 }; |
151 | |
152 #endif // SHARE_VM_RUNTIME_OSTHREAD_HPP |